vba number game

Completed Posted 6 years ago Paid on delivery
Completed Paid on delivery

we need such code that will play against a real player and will always win. the game is about:

1- there must be maximum 200 numbers and minimum of 2 (it must be randomly generated by code)

2-each number must be between 1 and 100 (randomly generated)

3-there must be 2 buttons (start, play)

gameplay:

player clicks start button. numbers are generated randomly everytime when a player presses the start button the game restarts. first player clicks play button, code selects either the most left or the most right number in the array. when code selects the number, it deletes the number and writes it to the below cell. the array gets shorter and shorter every turn. second player chooses the most left or most right cell again. then it deletes the number and writes to his side manually. the game ends when there are no numbers left. and the winner is chosen with the highest sum of the numbers chosen by either the code or user.

say,

50,95,1,70,65,10

when user clicks play pc must select 10 and delete it because if pc selects 50 it will lose the game for sure. then the user will select its number manually. he can select 65 or 50. its goes on like this. in the end the one with highest sum wins.

Excel Macros Excel VBA Visual Basic

Project ID: #15872210

About the project

3 proposals Remote project Active 6 years ago

Awarded to:

rinabuoy13

Hello Friend, Let me help you with this project. Looking to hearing from you soon. Kind regards Hello Friend, Let me help you with this project. Looking to hearing from you soon. Kind regards

$40 USD in 3 days
(60 Reviews)
5.9