|
 |
My New Game |
 |
1
 |
Floofy   Canada. Feb 16 2012 20:13. Posts 8708 | | |
Hi guys i programmed a new game i was wondering if anyone wants to test it, or have ideas for it.
Its a game based on a classic computer science problem called knapsack problem, but i believe my version is more complex.
In this game, you first pick the number of gems that there will be for sale (i recommend 30-40), and then they are all randomly generated. All of them have a price between 10-30, a type (attack speed life) and a value (based on price, but a bit random).
You start with 100$ and can buy as many gems as you want, and all of those boost your warrior.
You can either play against a friend or against the computer by clicking a button which makes his pick all of his gems (the more gems there are, the longer his thinking time takes. Over 50 gems takes him a LONG time).
Then once both players are done picking, the battle is simulated 100 000 times (or more) and the % of the time each player won is displayed.
Note: speed determines what % of the time your character strikes. So if your speed is much higher than the ennemy, your character will play a lot more often than the ennemy.
Right now, the computer is extremely difficult to beat, i can only tie with him. The strategy is to try to pick the gems that offers the best price/value ratio, while making sure you spend all of your money, and you balance speed/attack/life properly.
The computer isn't perfect, but he plays really well.
|
|
james9994: make note dont play against floofy, ;( | |
|
| 1
 |
Ket   United Kingdom. Feb 16 2012 20:27. Posts 8665 | | |
sounds like a shit game ;( |
|
| 1
 |
Floofy   Canada. Feb 16 2012 20:40. Posts 8708 | | |
its not the kind of game i would expect people to play for hours...
its more the fun of getting crushed hard constantly by a super AI at a seemingly simple game (if you put only 15 gems, it should be simple, but computer still owns). |
|
james9994: make note dont play against floofy, ;( | |
|
| 1
 |
Ket   United Kingdom. Feb 16 2012 20:50. Posts 8665 | | |
lol i know, i just thought it'd be really funny to post that one line, i was cracking up at my own comment. no offence intended obv
imo it'd get much more interesting if you invited ai opponents instead of human vs ai in some simple game.. a lot of university math/programming competitions work like that, where all the entering teams make their own ai and the ai strategies battle it out in a tournament.
my friend who's a math phd was once ages ago telling me about exactly such a competition he entered with a team from his uni battling against other unis that came to the conference. I can't remember the specifics of the game but his team won and his ai's strategy sounded super clever and awesome. ppl are really smart |
|
| 1
 |
Floofy   Canada. Feb 16 2012 21:02. Posts 8708 | | |
|
james9994: make note dont play against floofy, ;( | Last edit: 16/02/2012 21:25 |
|
| 1
 |
failsafe   United States. Feb 16 2012 21:43. Posts 1043 | | |
|
| 1 | |
hey keep it up, its cool to read about
u should just upload and post a link to the stuff so people can try out your game on a whim instead of having to ask you etc |
|
| Last edit: 17/02/2012 10:49 |
|
| 1
 |
Kapol   Poland. Feb 19 2012 04:04. Posts 4696 | | |
|
BIBLE (Basic Instructions Before Leaving Earth) | |
|
| |
|
|
 Poker Streams | |
|