Skip to content

RefaelEX/Number-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number game

my implementation in java

The game instructions

here is a game that you play against a friend or a computer (computer always wins :) ). You are given a list of numbers. You move first and pick either the first or the last number from the list, which is then removed from the list. Your friend/computer moves next and again picks either the first or the last number from the list that remains. You move alternately in this manner till all the numbers in the list have been picked. Your score at the end of the game is the sum of numbers that you have picked.

simply import the project into eclipse and run it :)

About

My solution for the number game problem on algorithm courses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages