![]() ![]() Then if player 1 makes a move, set that slot to 1, if player 2 makes a move set that slot to 2. To represent empty slots you could simple initialize all the array elements to 0. Then you check it with the board so see if it's occupied, if not update it and p[rint out the new board, if it's occupied then prompt the player to re enter the move. You could simply use the raw coordinates like 1 4 ( 1 means row 4 mean column)Īnd you use a scanf statement to get this: eg scanf(%d %d, &column &row) Now you need some sort of referencing point to place ur move, just like on a chess board. To print out the board simply use a for loop for(int i, j i < 10 & j < 10 i, j ++) What you want to do is print out the new board after every turn is over. Now assuming no AI is involved, meaning 2 human players Serious-Engine under GNU General Public License v2.0 license An open source version of a game engine developed by Croteam for the classic Serious Sam games. ![]() pyxel under MIT License license A retro game engine for Python 6. ![]() First you must create a 2 dimentional array the size of the board. Free open-source game cheat for Counter-Strike: Global Offensive, written in modern C++. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |