Sunday, May 3, 2015

Invasion (mostly) works!

Yes, you read that right.  I've finally gotten Invasion, the cornerstone mechanic of any Risk game, to a somewhat working state.  I say somewhat because, basically, I can't get the game to compare more than one set of dice per roll.

To put this into perspective, say the game rolls [6, 4, 2] for the attacker and [6, 1] for the defender.  Because of the bug, the game will compare the two highest rolls (the 6s) but afterwards it won't move on to compare the second highest numbers (the 4 and the 1).  It will instead compare the two highest numbers twice.  This causes nearly all invasions to bring both the defender and attacker's troop counts down into the single digits most every time.

I'd probably have been able to fix this over the past couple days, but I've been trying and failing to reinstall Windows onto my new SSD and I'm the sort of person who is unable to focus on anything once he comes across a difficult problem.

Hopefully I can get this thing to work soon so I can go back to Mega-Risk dev.