i still dont understand how to do it :( i just started c++ not long ago and im getting lost in my own coding :/
Type: Posts; User: razzaz
i still dont understand how to do it :( i just started c++ not long ago and im getting lost in my own coding :/
Here is my code, icant get the game to end when the grids are the same :/
// heero.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream> ...
ye, each time a move has been done each position in the startgrid needs to compared with the goalgrid and that's what im wondering how i can do? i have no clue at all :/ could you give me an example?
Hello
im trying to make a c++ program and If for example i have aarray/grids that prints this out a startgrid and a goal grid like this
startgrid
1 2 3
4 5 6
7 8 X
goalgrid
ah... what i tryed now as seen below is that i put the loop above the grids and threw in a "system ("cls");" under them, what i however dont know now is if i made this work corrently or not as X is...
thank you very very much for the guidence guys! :) i dont know how to thank you enough, i though have one last question if i may. :/
When the game starts you have the starting grid and the goal...
i think this is correct? :/
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
void jump(char start[][3],int x, int y);
ah i se, thank you! :) now the thing i still cant figure out is moving X and how to swap positions with X and the numbers :/
what should i do then? this is the part i cant understand :/
Hello there
Im trying to make a numbers game and i have gotten so far as to display a 3*3 grid, fil it with the numbers 1-8 and and X in the 9'th grid, and now what i need some help with is...
ah sorry i actully did not notice that i printed one new line wich i now removed. How could i make it insteed print the numbers after every row isnteed ? :/
if i print out "grid[i][n]" the number become 1,2,3,4,5,6,7,8, and the same with count :/ it is supposed to look someting like this
http://www.imagefrog.net/out.php/i2912_4.jpg
Hello
I got this grid working as you can se in the code bellow, but when i try to make some printf (or cout) to make it show some numbers i only get "0 0 1 1 2 2" displayed in a line. anyone know...
Hey there :)
WHat i wanted to try to make is a game in 3*3 squares with 1 number in each square except the last one as i said in the other post. the blank one you are supposed to be able to move...
Hello there.
Im trying to learn C++ and have done some smaller things but wanted to make a little test game and need some help if possible. i wanted to load from a file a gamearea that is 3x3...