You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
There is a relatively complex single player game called peg solitaire: http://en.wikipedia.org/wiki/Peg_solitaire . I intend to win this game with a learning algorithm. Do you think brain.js is capable to do that, or can you suggest something about how to start with these kind of algorithms?
The text was updated successfully, but these errors were encountered:
I really like your thought here. I believe this could easily be solved with the recurrent neural net implemented here: https://github.com/harthur-org/brain.js (the community continuation of the lib). I believe the means of solving this would simply be iteration of every mathematical means of solving the puzzle. The questions is, how would you predict the next move(s)? Would you do one at a time, looking to the next, or would you solve from the beginning to end?
Here is an example:
importLSTMfrom'../../src/recurrent/lstm';importVocabfrom'../../src/utilities/vocab';varnet=newLSTM({vocab: Vocab.allPrintableSeparated()});net.train([{input: 'hi',output: 'mom!'},{input: 'hello',output: 'dad!'}]);console.log(net.run('hi'));//some variation of "mom!"console.log(net.run('hello'));//some variation of "dad!"
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There is a relatively complex single player game called peg solitaire: http://en.wikipedia.org/wiki/Peg_solitaire . I intend to win this game with a learning algorithm. Do you think brain.js is capable to do that, or can you suggest something about how to start with these kind of algorithms?
The text was updated successfully, but these errors were encountered: