gges5110 / loveletter Goto Github PK
View Code? Open in Web Editor NEWMy attempt of replicating Love Letter board game
Home Page: https://gges5110.github.io/LoveLetter/
License: MIT License
My attempt of replicating Love Letter board game
Home Page: https://gges5110.github.io/LoveLetter/
License: MIT License
We some different states (start, turn, play, resolve, end) and it might be helpful to manage the states through Redux.
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.
Need more granular level tests.
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
Create some kind of mode for evaluating the strength of AI in terms of win rate by letting it play some number of games.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.