[newbie] Complex boolean value?

Frantisek Fuka fuxoft at terminal.cz
Mon Jun 18 07:06:57 UTC 2001


Richard A. O'Keefe wrote:


> This is rather a strange test in the first place.  There has to be
> a more problem-oriented way to express it.


Why does the test seem strange? I tried programming the famous "who gets 
the last match" game (also called NIM) and "value" was number of matches 
the human wants to take. So "value" is invalid if it's 1) smaller than 
1, 2) larger than the number of remaining matches, or 3) larger than the 
maximum number of matches to be taken in one turn.




-- 
                                          Frantisek Fuka
(yes, that IS my real name)
(and it's pronounced "Fran-tjee-shek Foo-kah")
----------------------------------------------------
My E-mail:   fuxoft at terminal.cz
My Homepage: http://www.fuxoft.cz
My ICQ:      2745855





More information about the Squeak-dev mailing list