Skip to main content

Questions tagged [pset3-fifteen]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
61 views

Segmentation fault in pset3 Game of Fifteen

I'm a little lost. I've been trying to debug this segmentation fault for a few days now and still can't figure out what to do. I narrowed the problem down to a particular line of code thanks to a ...
Georgia Rose Tunstall-Prince's user avatar
0 votes
1 answer
10 views

Pset3 move problem

I'm trying to make the move function from pset3 work but it keeps saying "segmentation fault" when I try to move the piece in the top-right corner. This always happens, even if the blank space is next ...
Wasp's user avatar
  • 5
0 votes
2 answers
390 views

Check50, Game of Fifteen. Timed out while waiting for "Illegal move"

I've finished working on my pset3 game of fifteen. After consulting Check50, it keeps telling me that: timed out while waiting for "Illegal move." Can someone explain this to me? Don't know what to do....
Hubert's user avatar
  • 1
0 votes
1 answer
121 views

pset3 fifteen check50 error [duplicate]

Can someone help me understand what's going on with my code? check50 keeps telling me "can't check until a frown turns upside down" even though the code compiles correctly. I don't know what this ...
Hubert's user avatar
  • 1
0 votes
1 answer
99 views

"Expected Expression" Error on Move Function

I am having a problem compiling fifteen.c. When I try to compile, I get an error in the move function saying: fifteen.c:225:27: error: expected expression coord_t = {i, j}; ...
Smithey's user avatar
  • 103
0 votes
1 answer
39 views

Check if the blank tile is next to the tile. Game of fifteen

guys! I am a beginner and not good enough at programming yet. On the game of fifteen I am trying to understand how this block of code works for a long time and still cant get the idea!:( bool ...
Andrei's user avatar
  • 7
0 votes
1 answer
35 views

Is my implementation of init() function in fifteen.c [pset3] true?

I am starting to do Game of Fifteen [pset3] today. I've just written init() function. I want to make sure it works before forging ahead to draw() function. Please, take a look at my implementation. /*...
Htet Oo Wai Yan's user avatar
0 votes
1 answer
37 views

Pset3- game of fifteen. My code runs perfectly. but check50 says....expected file to be of length 18, not 0

My code runs perfectly. but check50 says.... :( init initializes 3x3 board correctly \ expected file to be of length 18, not 0 :( init initializes 4x4 board correctly \ expected file to be of length ...
Bhakti Khakkar's user avatar
0 votes
1 answer
73 views

CS50 > Pset3 > Game of fifteen > init function :

Can anybody please explain why is the rule: 1 and 2 has to be swapped when the dimensions are even? Why is it necessary? what is happening behind the screen?
Sooraj.k's user avatar
0 votes
0 answers
30 views

(move) control may reach end of non-void function

Please go easy on me :( I feel like I'm over-complicating things. bool move(int tile) { // TODO int h; int k; for (int i = 0; i < d; i++) { for (int j = 0; j < d; j++...
Fixided's user avatar
0 votes
1 answer
61 views

working with game of fifteen

below is my modified version of a game of fifteen am still working on, I had just implemented the move() function but it fails to compile for some reason. #include <cs50.h> #include <stdio.h&...
Jere's user avatar
  • 37
0 votes
1 answer
34 views

problem with move function in game of fifteen

I am having problem with my move function in the game of fifteen. I don't know what do. I need someone to point out what I'm doing wrong. Thanks in anticipation. //To create rows (i) and columns (j) ...
doublestanding's user avatar