Git Product home page Git Product logo

loveletter's People

Contributors

ernie7334066 avatar gges5110 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

ernie7334066

loveletter's Issues

Index errors

IndexError {index: 8, min: 0, max: 8, message: "Index out of range (8 > 7)", stack: "Error↵ at new

IndexError (file:///C:/Users/Ambe…earning/LoveLetter/build/main.bundle.js:63927:25)"}index: 8 max: 8 message: "Index out of range (8 > 7)"min: 0stack: "Error↵ at new IndexError

(file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:8395:16)↵ at ./node_modules/mathjs/lib/utils/array.js.exports.validateIndex (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:58182:11)↵ at DenseMatrix.get (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:47904:7)↵ at _get (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:47976:21)↵ at DenseMatrix.subset (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:47876:16)↵ at ArrayIndex (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:37657:22)↵ at Object.subset (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:62647:22)↵ at ReinforcementAI.getQValue (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:63905:31)↵ at ReinforcementAI.getMaxQValueSAVectorGivenSAVectors (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:63913:24)↵ at ReinforcementAI.getMaxQValueGivenSAVectors (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:63927:25)"proto: RangeError
at Object../node_modules/mathjs/lib/error/IndexError.js (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:8398:24)
at webpack_require (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:20:30)
at Object../node_modules/mathjs/lib/utils/array.js (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:58088:19)
at webpack_require (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:20:30)
at Object../node_modules/mathjs/lib/utils/index.js (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:60099:17)
at webpack_require (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:20:30)
at Object../node_modules/mathjs/lib/type/matrix/Matrix.js (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:49246:12)
at webpack_require (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:20:30)
at Object../node_modules/mathjs/lib/type/matrix/index.js (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:52006:1)
at webpack_require (file:///C:/Users/Amber/Desktop/MachineLearning/LoveLetter/build/main.bundle.js:20:30)
./node_modules/mathjs/lib/utils/array.js.exports.validateIndex @ array.js:123
DenseMatrix.get @ DenseMatrix.js:160
_get @ DenseMatrix.js:232
DenseMatrix.subset @ DenseMatrix.js:132
ArrayIndex @ subset.js:50
subset @ typed-function.js:1088
getQValue @ reinforcementAI.js:176
getMaxQValueSAVectorGivenSAVectors @ reinforcementAI.js:183
getMaxQValueGivenSAVectors @ reinforcementAI.js:195
learn @ reinforcementAI.js:73
(anonymous) @ index.js:231
setTimeout (async)
nextTurn @ index.js:228
(anonymous) @ index.js:218
dispatch @ jquery-3.3.1.min.js:2
y.handle @ jquery-3.3.1.min.js:2

Better guessing strategy

Right now the AI look at what's played and choose the highest value card to guess. It doesn't take into account who played those cards.

AI Strength Evaluation mode

Create some kind of mode for evaluating the strength of AI in terms of win rate by letting it play some number of games.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.