View Single Post
Dice poker and unit testing
Status: Offline
Posts: 38
Join Date: Nov 2011
Default Dice poker and unit testing - 11-24-2011, 02:27 AM

EDIT: Updated version now in the following work in progress thread
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

A brief description of the testing process is given in

Hope this is useful.

Attached Files
File Type: a2w dicepoker.a2w (658.8 KB, 67 views)

Last edited by davidghemer; 12-11-2011 at 02:25 AM. Reason: added link to work in progress link
Reply With Quote