Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~337 People Reached
Favorite Forums
Favorite Tags
Member Avatar for sugarzzzz

I have a minelist[0,15] for a board 4 height and 4 width every elemnt in the board is a zero so it looks like [['0','0','0', '0'],['0','0','0', '0'],['0','0','0', '0'],['0','0','0','0']]now if I mines X in 0,15 it would look like [['x','0','0', '0'],['0','0','0', '0'],['0','0','0', '0'],['0','0','0','x']] now whereever the mines are touching it is …

Member Avatar for woooee
0
111
Member Avatar for sugarzzzz

def verifyNeighbor (boardWidth, boardHeight, neighbor, me): my_row=me/boardWidth neighbor_row=neighbor/boardWidth if my_row==neighbor_row and abs(me-neighbor)==1: result=True else: result=False my_column=me/boardHeight neighbor_column=neighbor/boardHeight my_column=neighbor_column if my_column==neighbor_column and abs(me-neighbor)==boardHeight: result=True else: result=False x=boardWidth*boardHeight if neighbor>x: result=False else: result=True if neighbor<0: result=False else: result=True return result given a board of height like 4,5 etc and a width of …

Member Avatar for lancevo3
0
226