Talk:Nim game: Difference between revisions
mNo edit summary |
Thundergnat (talk | contribs) m (Thundergnat moved page Talk:Nim Game to Talk:Nim game: Regularize title capitalization to norms) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== the Nim game == |
|||
I would love for anyone who is interested to make any edits to the description that will make it more readable. I'll also be adding a few more examples before promoting this to a regular task. If you have any examples, feel free to add them - I will be adding Javascript and Python myself, and possibly also C and Java, if I still have a little extra time ;D [[User:Prof Apex|Prof Apex]] ([[User talk:Prof Apex|talk]]) 15:59, 10 April 2019 (UTC) |
I would love for anyone who is interested to make any edits to the description that will make it more readable. I'll also be adding a few more examples before promoting this to a regular task. If you have any examples, feel free to add them - I will be adding Javascript and Python myself, and possibly also C and Java, if I still have a little extra time ;D [[User:Prof Apex|Prof Apex]] ([[User talk:Prof Apex|talk]]) 15:59, 10 April 2019 (UTC) |
||
I think if there are no changes needed to the description text, I will move this to a regular task in a couple days, since there are now a few examples (and even one I didn't write ;D) [[User:Prof Apex|Prof Apex]] ([[User talk:Prof Apex|talk]]) 20:54, 10 April 2019 (UTC) |
|||
I'm glad there's already a bit of interest in this! |
|||
== the REXX version == |
|||
<strike> |
|||
It should be noted with the REXX version that if the player specifies a number of tokens that is not a multiple of 4, the computer will not win using the same method. Either the number of tokens must be adjusted to a multiple of 4, or a number must be found that divides evenly into the number of tokens, the take limit set to 1 less than that, and the computer take the difference of those numbers instead (if that made any sense at all..)</strike> [[User:Prof Apex|Prof Apex]] ([[User talk:Prof Apex|talk]]) 12:28, 11 April 2019 (UTC) |
|||
: I changed the REXX entry to allow (and win) if the number of tokens is greater than 12. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 06:08, 6 June 2020 (UTC) |
|||
== a 3<sup>rd</sup> method == |
|||
Actually I just remembered a third method - in the event that the number of tokens is not a multiple of 4, the computer can go first, taking #tokens % 4, setting the game up to be unwinnable again for the player.[[User:Prof Apex|Prof Apex]] ([[User talk:Prof Apex|talk]]) 12:34, 11 April 2019 (UTC) |
Latest revision as of 13:50, 24 November 2020
the Nim game
I would love for anyone who is interested to make any edits to the description that will make it more readable. I'll also be adding a few more examples before promoting this to a regular task. If you have any examples, feel free to add them - I will be adding Javascript and Python myself, and possibly also C and Java, if I still have a little extra time ;D Prof Apex (talk) 15:59, 10 April 2019 (UTC)
I think if there are no changes needed to the description text, I will move this to a regular task in a couple days, since there are now a few examples (and even one I didn't write ;D) Prof Apex (talk) 20:54, 10 April 2019 (UTC)
I'm glad there's already a bit of interest in this!
the REXX version
It should be noted with the REXX version that if the player specifies a number of tokens that is not a multiple of 4, the computer will not win using the same method. Either the number of tokens must be adjusted to a multiple of 4, or a number must be found that divides evenly into the number of tokens, the take limit set to 1 less than that, and the computer take the difference of those numbers instead (if that made any sense at all..) Prof Apex (talk) 12:28, 11 April 2019 (UTC)
- I changed the REXX entry to allow (and win) if the number of tokens is greater than 12. -- Gerard Schildberger (talk) 06:08, 6 June 2020 (UTC)
a 3rd method
Actually I just remembered a third method - in the event that the number of tokens is not a multiple of 4, the computer can go first, taking #tokens % 4, setting the game up to be unwinnable again for the player.Prof Apex (talk) 12:34, 11 April 2019 (UTC)