SexScripts : Nim - https://ss.deviatenow.com:443/viewtopic.php?f=7&t=788 Page 1 of 1

Nim

SomeGuy22006 [ Mon Sep 10, 2018 5:22 pm ]

Hi,

After a long time of lurking on this site and making or editing scripts for myself I've posted a game.

Its based on the classic game of Nim.

Any bugs or comments please let me know.

Re: Nim

cd228 [ Tue Sep 11, 2018 4:12 pm ]

SomeGuy22006 wrote:
Hi,

After a long time of lurking on this site and making or editing scripts for myself I've posted a game.

Its based on the classic game of Nim.

Any bugs or comments please let me know.


Hi. Remember to edit the author name at the top of the script.
Currently I stand as the author :)

Re: Nim

cd228 [ Thu Sep 13, 2018 9:12 pm ]

Great script by the way. :D
I haven't had time to look at the code, but does the difficulties do something about the AI?

Re: Nim

marspank [ Thu Sep 13, 2018 10:57 pm ]

cd228 wrote:
Great script by the way. :D
I haven't had time to look at the code, but does the difficulties do something about the AI?


I have poked through the code, so here is the answer.

The difficulty does increase the AI, as Nim is a game with a guaranteed winning strategy. Basically, the harder difficulties gives the AI a higher percent chance of making that move (with impossible guaranteeing it).

Re: Nim

doti [ Fri Sep 14, 2018 9:56 am ]

I updated the author name in the online script.
Thank you

Re: Nim

SomeGuy22006 [ Sat Sep 15, 2018 2:06 pm ]

cd228 wrote:
Hi. Remember to edit the author name at the top of the script.
Currently I stand as the author :)


Ah yes. That clearly was my tribute to you for your great inspiration to me, and not my incompetence in code writing.

Thank's doti for updating.

cd228 wrote:
I haven't had time to look at the code, but does the difficulties do something about the AI?


As said there are winning strategies for Nim, especially for the simple version implemented here. This works both ways. If you know what you are doing and play perfectly on the lower difficulties you can win. As the difficulty increases then if you make a mistake then the chances are the AI will beat you. That is also the reason why on 'Hard' difficulty both the number of counters and who starts is randomised as that affects potential winner.

Re: Nim

cd228 [ Thu Sep 20, 2018 6:59 pm ]

SomeGuy22006 wrote:
cd228 wrote:
Hi. Remember to edit the author name at the top of the script.
Currently I stand as the author :)


Ah yes. That clearly was my tribute to you for your great inspiration to me, and not my incompetence in code writing.

Thank's doti for updating.

cd228 wrote:
I haven't had time to look at the code, but does the difficulties do something about the AI?


As said there are winning strategies for Nim, especially for the simple version implemented here. This works both ways. If you know what you are doing and play perfectly on the lower difficulties you can win. As the difficulty increases then if you make a mistake then the chances are the AI will beat you. That is also the reason why on 'Hard' difficulty both the number of counters and who starts is randomised as that affects potential winner.



Glad you learned from my scripts. I myself learned a lot from Banjo, so check out his scripts as well:)
And great idea converting this game to a tease:)
I look forward to see what you will create in the future:)

Page 1 of 1 All times are UTC + 1 hour [ DST ]
https://ss.deviatenow.com:443/
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2011