Skip to content

A SPA Dots & Boxes game written in vanilla javascript, accessible, with homemade routing, use Service Worker to set it up as a PWA, use a heuristic algorithm for AI and CSP for security.

License

Notifications You must be signed in to change notification settings

GwendolineRodriguez/DotsAndBoxes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dots And Boxes

A SPA Dots & Boxes game written in vanilla javascript, accessible, with homemade routing, use minimax algorithm for AI and CSP for security. Project made to learn the fundamentals of JS, Routing, CSP, Accessibility, and Game AI.

https://dots-boxes.netlify.app/

Features

  • Written in pure Vanilla Javascript.

  • Homemade Routing : use of History Browser API.

  • Accessibility : light/dark mode, Contrast checked, game playable through Keyboard.

  • Board Size from 3x3 to 4x4.

  • AI made with Minimax algorithm.

Roadmap and Bugs to fix

  • Service worker not working.

  • Add CSP for Security and check LightHouse Score.

  • PWA : Caching through Service Worker for offline access.

  • Routing : bug on mobile browser, and refresh always leads to home. Add navigation API.

  • Many ways to improve AI, but Alpha Pruning Heuristic method to add first.

  • Add Page Transition API

  • Put AI in a web worker

About

A SPA Dots & Boxes game written in vanilla javascript, accessible, with homemade routing, use Service Worker to set it up as a PWA, use a heuristic algorithm for AI and CSP for security.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published