de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Nim
PostPosted: Mon Sep 10, 2018 5:22 pm 
Offline
Shy
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.


Top
 Profile Send private message 
 
 Re: Nim
PostPosted: Tue Sep 11, 2018 4:12 pm 
Offline
Veteran
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 :)


Top
 Profile Send private message 
 
 Re: Nim
PostPosted: Thu Sep 13, 2018 9:12 pm 
Offline
Veteran
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?


Top
 Profile Send private message 
 
 Re: Nim
PostPosted: Thu Sep 13, 2018 10:57 pm 
Offline
Addict
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).


Top
 Profile Send private message 
 
 Re: Nim
PostPosted: Fri Sep 14, 2018 9:56 am 
Offline
Site Admin
User avatar
I updated the author name in the online script.
Thank you


Top
 Profile Send private message 
 
 Re: Nim
PostPosted: Sat Sep 15, 2018 2:06 pm 
Offline
Shy
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.


Top
 Profile Send private message 
 
 Re: Nim
PostPosted: Thu Sep 20, 2018 6:59 pm 
Offline
Veteran
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:)


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2015
This website uses session cookies only.