project/grid.py
def move(self):
        """
        Changes ant's current location to cell 1 away in it's current direction
        """
        x, y = self.ant[0], self.ant[1]
        # Stitches field for when ant is at edge
        addx, addy = (x + 1) % self.rows, (y+1) % self.columns
        minusx, minusy = (x - 1) % self.rows, (y - 1) % self.columns
        if self.direction == "N":
            self.ant = (x, minusy)
        elif self.direction == "E":
            self.ant = (addx, y)
        elif self.direction == "S":
            self.ant = (x, addy)
        elif self.direction == "W":
            self.ant = (minusx, y)

        Changes ant's current location to cell 1 away in it's current direction
        
Changes ant's current location to cell 1 away in it's current direction
Changes ant ' s current location to cell 1 away in it ' s current direction
def move(self):
        x, y = self.ant[0], self.ant[1]
        addx, addy = (x + 1) % self.rows, (y+1) % self.columns
        minusx, minusy = (x - 1) % self.rows, (y - 1) % self.columns
        if self.direction == "N":
            self.ant = (x, minusy)
        elif self.direction == "E":
            self.ant = (addx, y)
        elif self.direction == "S":
            self.ant = (x, addy)
        elif self.direction == "W":
            self.ant = (minusx, y)
def move ( self ) : x , y = self . ant [ 0 ] , self . ant [ 1 ] addx , addy = ( x + 1 ) % self . rows , ( y + 1 ) % self . columns minusx , minusy = ( x - 1 ) % self . rows , ( y - 1 ) % self . columns if self . direction == "N" : self . ant = ( x , minusy ) elif self . direction == "E" : self . ant = ( addx , y ) elif self . direction == "S" : self . ant = ( x , addy ) elif self . direction == "W" : self . ant = ( minusx , y )
Changes ant's current location to cell 1 away in it's current direction
Changes ant ' s current location to cell 1 away in it ' s current direction
"""
        Changes ant's current location to cell 1 away in it's current direction
        """ # Stitches field for when ant is at edge
self