vba number game

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.

--Very Nice Job. Professional Algorithm & Probability & VBA & Math expert. Best result in time-----
[login to view URL]
I read your description very carefully.
I am very interesting for your project because I have rich expeLagi

How are you?
I am very skilled developer in the filed of such as the project.
I am getting the goal fully on the project.
Now I can give you the way of doing the project for you to have a great idea.
Feature.
Lagi