![image](https://private-user-images.githubusercontent.com/65853349/256044185-7c3b3a5f-d821-4537-b5b6-9bfa181102d2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMjM0MjksIm5iZiI6MTczOTAyMzEyOSwicGF0aCI6Ii82NTg1MzM0OS8yNTYwNDQxODUtN2MzYjNhNWYtZDgyMS00NTM3LWI1YjYtOWJmYTE4MTEwMmQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDEzNTg0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg3ZWM4N2U3NDg5ZGQwYjZjYTYxZTFjNDAxYmU3NDZlMWQ3YmMzMDBiNzQ5M2UwNzIxN2Y4ZjE1NDJhNWE1ZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.zK-rjljdZwDOddcstMAXnVgTEH17TsRPgrkM64XIMfA)
This is, well... Tic Tac Toe! I made this app as a side project to try out some new stuff and practice coding.
Here's what I've used:
- Vanilla JS, because I enjoy the from-scratch nature of it.
- Service Workers and cache storage, to make the app available offline.
- MVC design pattern. It keeps things nice and tidy by decoupling the rendering of the app from the implementation of the game itself.
- Event design pattern, as the method of communication between the view and the model.
- Minimax algorithm, for the game's artificial intelligence.
Clone the repository, make sure you have npm installed and run:
npm i && npm run start
Open your browser and go to localhost:3000