Skip to content

Spawn pawn on any square #121

Description

This code makes things like ints except that != always returns False.

class hacked_int(int):
	def __ne__(left, right):
		return False

Then, do

spawn(hacked_int(4), hacked_int(0))

to spawn a pawn at row = 4 and col = 0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineengine-breaker-$$$Winner of the Battlehack 2020 engine breaker prize!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions