Hot answers tagged

3 votes
Accepted

Game of Fifteen - Move function issue

You have two serious problems here. First, your move() function defines int blank = board[d][d]; The array element board[d][d] doesn't exist because both indexes run from 0 to d-1. Anything with d ...
user avatar
  • 63.1k
1 vote

Submiting Final Project

Yes, that's fine. You aren't required to submit your code if it's not developed in the IDE. Instead, you only need to submit a readme type file (and a video).
user avatar
  • 18.3k
1 vote
Accepted

game of fifteen check50

In my code when the problem was that in 3 x 3 board when I was starting game with 3 then tile goes up and after that if you exchange with 2, it was exchanging which is not a permissible move one can ...
user avatar
  • 266
1 vote
Accepted

pset0 scratch how to pause the game

When you click to show the variable "play/pause", it shows that the variable is indeed working - it switches from play to pause and back again every time you click "p". However, nothing happens when ...
user avatar
1 vote

Bug in game of scratch

if you change the code for adding plus one to the score from the cat sprite to fish sprite under when recieve eated it works as desired Here is a screen dump of what i mean
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible