Questions tagged [pset3-fifteen]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
57 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 ...
0
votes
1answer
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 ...
0
votes
2answers
383 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....
0
votes
1answer
118 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 ...
0
votes
1answer
69 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}; ...
0
votes
1answer
31 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 ...
0
votes
1answer
34 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. /*...
0
votes
1answer
36 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 ...
0
votes
1answer
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?
0
votes
0answers
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++...
0
votes
1answer
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&...
0
votes
1answer
33 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) ...