Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoodscott/connect4
Connect 4 game made with Elm
https://github.com/hoodscott/connect4
elm
Last synced: about 1 month ago
JSON representation
Connect 4 game made with Elm
- Host: GitHub
- URL: https://github.com/hoodscott/connect4
- Owner: hoodscott
- Created: 2023-10-04T13:37:18.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-04T19:22:00.000Z (about 1 year ago)
- Last Synced: 2024-10-20T00:43:22.250Z (2 months ago)
- Topics: elm
- Language: Elm
- Homepage: https://scotthood.co.uk/project/connect4/play/
- Size: 332 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Connect 4 made with Elm
## Can play:
- Human vs. Human
- Human vs. AI
- AI vs AI## AIs implemented:
- Choose random column
- Simple minimax that looks for winning/losing games in the next n turns
- Choose middle column
- Choose least empty column (tries to stack pieces)
- Choose most empty columm (tries to spread pieces)## Setup
Requires global install of Elm. Then run following commands to setup elm-live server on [localhost:8000](http://localhost:8000/):
```
npm i
npm run live
```To build the app run either `.\build.cmd` or `./build.sh` depending on OS.