初学者的C++练习题——(六)三子棋

    技术2022-05-18  12

    Tic Tac Toe

    Requires: variables, data types, and numerical operators basic input/output logic (if statements, switch statements) loops (for, while, do-while) arrays Make a two player tic tac toe game. ★ Modify the program so that it will announce when a player has won the game (and which player won, x or o) ★★ Modify the program so that it is a one player game against the computer (with the computer making its moves randomly) ★★★★ Modify the program so that anytime the player is about to win (aka, they have 2 of 3 x's in a row, the computer will block w/ an o)


    最新回复(0)