Answer:
Explanation:
i think it is easy:
1- you declare 2d array
2- fill it with *
3- declare player1Turn =true
4- declare player2Turn =false
5- make while loop where not finished
BS:not Finished would be function return bool that checks the condtions
6-if player1Turn
6.1- player1Turn =false
6.2- player2Turn =true
6.3- call function called play with "player1","X" as args
6-else if player2Turn
6.1- player2Turn =false
6.2- player1Turn =true
6.3- call function called play with "player2","O" as args
5- end while loop
Answer:
You should also use Prefabs when you want to instantiate GameObjects at runtime that did not exist in your Scene at the start - for example, to make powerups, special effects, projectiles, or NPCs appear at the right moments during gameplay.
Answer:
- int birthMonth, birthYear;
-
- cin >> birthMonth;
- cin >> birthYear;
-
- cout << birthMonth << "/" << birthYear;
Explanation:
Firstly, we declare two integer type variables, <em>birthMonth</em> and <em>birthYear </em>(Line 1). Next, we use cin as the standard input stream to get the birth month and year from user (Line 3 - 4). Finally, we print the date using cout. We can chain the << operator to create a date string with format birthMonth/birthYear as expected by question (Line 6)