Hi could anyone tell me how to do something like:
when enter is pressed than start the game again.
coz I'am working on my tic tac toe game and sometimes I can't be bothered to debug again
so that would be realy helpful
Game help
Re: Game help
Hi kacspar,
You just need to reset all your variables to their initial state.
And also reset the board to it's initial state, that is all.
Asimov
You just need to reset all your variables to their initial state.
And also reset the board to it's initial state, that is all.
Asimov
----> Asimov
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk
Re: Game help
Yeah, write a reset function, and then call that function when enter is pressed. You can also call it from your Game construtor and get a two-for-one.
Chili