Could you please help me how to create a four in a row game in C?
Thanks!
AnnA.B 13 Newbie Poster
Recommended Answers
Jump to PostCreate an array which holds the board state.
(don't forget to initialize the board before using it)1) Write code to display the board (from the array).
(Test whether everything is displayed correctly).2) Write code to accept user input.
3) Write code which processes the user …
Jump to PostHi Anna,
Now at this point forget about the Artificial Intellegence .just make it a 2 player game.After its completion you can go for the AI.
Thanks,
DPYes, that would be a better idea to begin with.
BTW, Dream2Code it's highly preferable to post using code tags:
http://www.daniweb.com/forums/misc-explaincode.html
Jump to PostTnx for all tips you gave me, now I'll try to write a code.
Agreed till here.
But if anyone has too much time, could write it instead of me ;) :D
I have too much time, but giving you free code is against the philosophy of this forum.
The …
Jump to Posthttp://www.pomakis.com/c4/obfuscated.c
Hope this helps!
Jump to Postiamthwee, tnx for your code. That's exactly what I need, but it's very hard to read
really? you think so? i thought it was actually quite clever.
you should hand it in, your instructor will be impressed.
All 17 Replies
Dream2code 12 Junior Poster
AnnA.B 13 Newbie Poster
Dream2code 12 Junior Poster
AnnA.B 13 Newbie Poster
tux4life 2,072 Postaholic
Dream2code 12 Junior Poster
Dream2code 12 Junior Poster
tux4life 2,072 Postaholic
AnnA.B 13 Newbie Poster
tux4life 2,072 Postaholic
AnnA.B 13 Newbie Poster

iamthwee
Dream2code 12 Junior Poster
Dream2code 12 Junior Poster
AnnA.B 13 Newbie Poster
jephthah commented: LOL +13
jephthah 1,888 Posting Maven
joao.jose.520 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.