subject

Write a program for a matchstick game being played between the computer and a user.
your program should ensure that the computer always wins.
rules for the game are as follows:

i-there are 21 matchsticks.

ii-the computer asks the player to pick 1,2,3 or 4 matchsticks.

iii- after the person picks the computer does its picking.

iv- whoever is forced to pick up the last matchstick loses the game.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
How do you write an argumentative essay about the importance of free enterprise ?
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
You know the right answer?
Write a program for a matchstick game being played between the computer and a user.
your progr...
Questions
question
Mathematics, 08.10.2019 12:30
question
History, 08.10.2019 12:30
question
Mathematics, 08.10.2019 12:30
Questions on the website: 13722367