![]() |
Dice poker and unit testing
1 Attachment(s)
EDIT: Updated version now in the following work in progress thread
[url]http://alice.org/community/report.php?p=44426[/url] ------------------------------------------ Hi all, here's a simple dice poker game. At this stage the focus is the underlying logic, with a simple front end. The program stores 5 randomly generated dice rolls in an array. A number of functions have been implemented that check whether the 5 dice correspond to a certain combination, e.g. straight, full house etc. I've also added a small number of unit tests. Just a proof of concept for now, but it shows how xUnit type tests can be done for functions in Alice. Lots more testing required. A walkthrough of the code is given in the following video tutorial [url]http://www.youtube.com/watch?v=nMCIFmLMjP8[/url] A brief description of the testing process is given in [url]http://www.youtube.com/watch?v=zYZjHd1mKMk[/url] Hope this is useful. David |
I think it is good. How long did you take to create a simple game like this? I have always wanted to create simple math games on Alice in my spare time, but blame it on my poor time management that I wasn't able to do so for a long time. I enjoyed your game!
|
reminds me of mine game kinda
[url]http://alice.org/community/showthread.php?p=48469#post48469[/url] |
All times are GMT -5. The time now is 10:10 AM. |
Copyright ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.