https://github.com/oakmac/clojurescript-tic-tac-toe
Tic-Tac-Toe implemented in ClojureScript. Used as a teaching exercise for the Professional ClojureScript course (https://cljs.pro)
https://github.com/oakmac/clojurescript-tic-tac-toe
Last synced: 4 months ago
JSON representation
Tic-Tac-Toe implemented in ClojureScript. Used as a teaching exercise for the Professional ClojureScript course (https://cljs.pro)
- Host: GitHub
- URL: https://github.com/oakmac/clojurescript-tic-tac-toe
- Owner: oakmac
- License: isc
- Created: 2021-02-25T17:34:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-26T03:48:41.000Z (over 5 years ago)
- Last Synced: 2025-07-22T04:06:56.323Z (11 months ago)
- Language: HTML
- Size: 25.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ClojureScript Tic-Tac-Toe
A game of tic-tac-toe implemented using ClojureScript.
Used as a teaching exercise for the [Professional ClojureScript course](https://cljs.pro).
## Approach Used
- represent UI state in an atom
- [hiccups] for HTML generation
- separate game logic into it's own namespace
[hiccups]:https://github.com/macchiato-framework/hiccups
## Development Setup
```sh
## install node_modules/ folder (one-time setup)
npm install
## start shadow-cljs server
npx shadow-cljs server
# (in a separate terminal window or tab)
## watch the build for development
npx shadow-cljs watch app
## OR
## create a release for production
npx shadow-cljs release app
## (if using watch) connect a browser REPL
npx shadow-cljs cljs-repl app
```
## License
[ISC License](LICENSE.md)