Commit Graph
21 Commits
Author SHA1 Message Date
pavel a1207f2404 Implement moving on engine
Thus make all state management the engine's responsibility, and remove
the state maintaining code from frontend!
2021-12-14 21:56:27 +01:00
pavel 27dce5f7a3 Implement move squares highlighting
Issue #3
2021-12-13 20:46:53 +01:00
pavel 8d93acf950 Implement selected piece highlighting
Issue #3
2021-12-13 20:14:53 +01:00
pavel f9212a8291 Refactor move handling in frontend
Make the move handlers better encapsulated and abstract away the click.

Issue #3
2021-12-13 20:11:37 +01:00
pavel 941a5c072a Refactor square drawing
Make square drawing modular and a member function of Canvas.

Issue #3
2021-12-13 19:38:54 +01:00
pavel 7788aea805 Address eslint 2021-12-11 18:08:02 +01:00
pavel 7dabb49cd4 Do another refactoring of frontend 2021-12-11 17:15:50 +01:00
pavel b5c252bd4d Implement basic frontend-engine interaction
Use a Flask-based Python server as an adapter to the engine's
stdin-stdout inferface.
2021-12-11 14:58:16 +01:00
pavel 799c91fea0 Prettier index.html 2021-11-14 14:43:32 +01:00
pavel b246ba83d1 Make prettier 2021-11-08 21:55:51 +01:00
pavel cb44ae4184 Fix capture
This will probably not be needed in the near future anyway
2021-08-13 17:32:33 +02:00
pavel ab1e70e7d4 Major overhaul of the architecture
It's pretty horrible to have a commit messing up 90% of the code and
also stuff isn't really well organized, but probably it needed to be
done...
2021-08-13 17:16:56 +02:00
pavel 0540b262dd Add basic moving capabilities 2021-06-01 21:47:06 +02:00
pavel a3ae7c9f71 Refactor with some OOP 2021-06-01 21:43:25 +02:00
pavel 751cc2cc04 Add jsconfig.json
To improve JS experience
2021-05-31 20:59:42 +02:00
pavel 0e6cd7e2c0 Refactor project away from html
Main reason is to dynamically specify the dimensions for the
board canvas.
2021-05-31 20:58:48 +02:00
pavel 1f6bb25ed7 Add pieces to the board 2021-05-31 20:35:35 +02:00
pavel 8d65dda7c6 Make board dimensions global 2021-05-27 20:54:26 +02:00
pavel 0bbb4e6125 Add board index 2021-05-26 20:08:53 +02:00
pavel dab3b1798b Draw squares 2021-05-26 19:39:08 +02:00
pavel d3001a66d5 initial commit 2021-05-26 18:31:18 +02:00