i have already written the connect 4. but i would like to play with (i.e. play with ai)
how can i do that??:(
p.s. i am writing by c++ and in dos only
Printable View
i have already written the connect 4. but i would like to play with (i.e. play with ai)
how can i do that??:(
p.s. i am writing by c++ and in dos only
Search the board, we had a connect 4 competition some years ago. All of the source was posted (but don't download mine cause it was really broken!)
Alternatively, google for "mini-max algorithm" and/or "alpha-beta pruning"
can i write by heuristic function???
but after searching by google i have no idea for this
how can i start??
Start by writing code and running into specific issues. Then come here and ask about said specific issues.
I saw a connect four on here that was pretty cool although the post was a bit old, my question was that i Built a board but then got totally lost in the place and drop function for the users pieces and have been told this is the simple part of the process, I was not looking to have the win function yet just get the game working. the one i saw used addition charaters to make up a small square and used coloured x's and o's, I am just looking at a simple game that works for the moment.
Closed. Please do not bump old threads.