From 53340e64af062feb9f6d143cd25b822e9a57d3cd Mon Sep 17 00:00:00 2001 From: CortezSMz Date: Mon, 11 Apr 2022 11:06:18 -0300 Subject: [PATCH] implement difficult settings --- README.md | 21 +++++------ src/components/Controls.vue | 70 +++++++++++++++++++++++++++---------- src/plugins/vuetify.ts | 2 +- 3 files changed, 63 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 410023a..d5f657e 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,20 @@ - # Connect Four -3D Connect Four game made with Three.js, TypeScript and Vue for UI. Play agains a minimax algorithm. +3D Connect Four game made with Three.js, TypeScript and Vue for UI. Play against a minimax algorithm. ## [Live demo](https://connectfour.alexandrecortez.dev/) ## To Do - - [ ] Minimax - - [x] Implement minimax to play as yellow - - [ ] Implement difficult settings (how many plays on the future does it see) - - [ ] Optimize algorithm - - [ ] Make it optional to play agains minimax - to control both discs and play locally - - [ ] Polish UI - - [ ] Include more animations - - [ ] Better ending screen + +- [ ] Minimax + - [x] Implement minimax to play as yellow + - [x] Implement difficult settings (how many plays on the future does it see) + - [ ] Optimize algorithm + - [ ] Make it optional to play against minimax - to control both discs and play locally +- [ ] Polish UI + - [ ] Include more animations + - [ ] Better ending screen ## Inspiration + This app is inspired by [Areknawo's 2048](https://github.com/areknawo/2048). diff --git a/src/components/Controls.vue b/src/components/Controls.vue index 0323ff9..567797f 100644 --- a/src/components/Controls.vue +++ b/src/components/Controls.vue @@ -1,6 +1,7 @@