uno plugin: don't allow g9r9 card specification
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 18 Oct 2010 22:39:13 +0000 (00:39 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 18 Oct 2010 22:39:13 +0000 (00:39 +0200)
commita306b2c68eb58c1c88057ff7ee78895401adb6a9
treeac7167206a5fb64346de01f4130e70c7218a886e
parent94a06f9ea2fb8f19aa75ca80c152699243edd6dc
uno plugin: don't allow g9r9 card specification

The regexp should make sure that the second card is equal to the first
specified card, instead of matching the card expression one or two
times. Otherwise, a play like 'pl g9r9' would be accepted when the
player had two r9 cards and could play them.

This is only a aesthetical change because the plays would still be
valid, albeit (1) surprising and (2) mismatching what the user actually
wrote.
data/rbot/plugins/games/uno.rb