UNO plugin: give cards to correct player at endgame oldmaster
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 27 Oct 2008 21:59:07 +0000 (22:59 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 27 Oct 2008 21:59:07 +0000 (22:59 +0100)
commitac5ab47320777b42104028f19383fdc6fc3aceb7
treebd8185e4e45db52dee336403195c0c9c96f764bf
parenta5f2eb0e77880ed5582ad39692349b31a50f9b4d
UNO plugin: give cards to correct player at endgame

If the winner played a Reverse in response to a picker, the previous
player should pick the cards, and not the next one. This is not really
important at the moment because we score by giving points to the winner
instead of taking them from losers, but we fix it for correctness. It'll
be especially useful when we'll implement the other scoring too.
data/rbot/plugins/games/uno.rb