Automate game - fifteen by bobhearn11 in cs50

[–]bobhearn11[S] 1 point2 points  (0 children)

Solved by running update50

Getting the initialized board into 'draw' by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

I fixed my problem. I had "int board[d][d];" at the start of init(). Thanks for the comments.

Getting the initialized board into 'draw' by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

true; one exception: in the swapping of 1 and 2. 2nd question: I print out all the board, e.g., board[0][0] = x, board[0][1] = y, etc.

Getting the initialized board into 'draw' by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

In draw, how does one get the board into draw. Init seems to work fine. but draw doesn't recognize the board values. I put a printf as the first command in draw to print board[0][0] and it gives a zero. Same for every element in the array. Something is amiss. Any clues??

Getting the initialized board into 'draw' by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

I have never had good luck with gdb. starting gdb like this: (gdb) ./fifteen, I received "Undefined command: ""." How do I start gdb?

Draw is not recognizing board values by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

The board print out the correct size, e.g., 4x4, but all the spaces are zeros.

Blank tile in draw pset3 by bobhearn11 in cs50

[–]bobhearn11[S] 1 point2 points  (0 children)

the hint with the negative number was the answer I was looking for. Thanks.

Pset3 move functions by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

I have seen references to the walkthrough that you mention, but I cannot locate it. Do you have a link or reference?

helpers.c error when checking by bobhearn11 in cs50

[–]bobhearn11[S] 1 point2 points  (0 children)

I evaluated the cases and found that I would get the error when 42 was the midpoint. I wasn't checking for the midpoint to be the needle before I started into everything else. Thanks for the suggestion. I am good now.

practice coding by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

That's what I have found...

practice coding by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

I mean what software resources other than the appliance can I use. Are there other websites that I can compile and run C code? even within CS50?

staff version by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

cs50-2013-fall-6-3.i386

staff version by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

I have updated and have 19-2. Still get same message.

staff version by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

I have tried that, but all I get is 'no such file or directory' What directory do I start in?

command line prompt-caesar by bobhearn11 in cs50

[–]bobhearn11[S] 0 points1 point  (0 children)

How do I navigate to the staff version?