Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 1323

Game of Fifteen, one of the assignments in Problem Set 3

0 votes
1 answer
329 views

How and where to write code to check around tile? Pset3, Game of Fifteen

Been killing my head for too long with this. I get that we check around the tile when we find it in our loop, but then what? I understand completely, conceptually... yes, check around the tile for th …
Azurespot's user avatar
  • 203
1 vote
1 answer
482 views

Swap 2 and 1 after looping, pset3, Game of Fifteen

I don't know why my positions at 2 and 1 in my odd numbered tiles are not swapping. Here is a mix of pseudo code plus my swap conditional. See anything that is wrong? Thanks. // board, whereby bo …
Azurespot's user avatar
  • 203