Commit Graph

567 Commits

Author SHA1 Message Date
Savanni D'Gerinel 02af9e4ea7 Write enough of the rope to append at least two nodes to the list 2024-05-13 08:35:09 -04:00
Savanni D'Gerinel 24d266ab34 Benchmark inserting a line at the beginning of moby dick 2024-05-06 09:27:37 -04:00
Savanni D'Gerinel a2146a0168 Add some basic editing facilities 2024-05-06 01:53:27 -04:00
Savanni D'Gerinel 54b34d81ec Contain the app UI inside of a component 2024-05-06 01:38:22 -04:00
Savanni D'Gerinel 8f4d424d1d Code cleanups 2024-05-06 01:10:23 -04:00
Savanni D'Gerinel 4a62372fd3 Extract several components into crates 2024-05-06 00:58:17 -04:00
Savanni D'Gerinel 61127339bc Render the contents and set up a functioning cursor 2024-05-06 00:50:45 -04:00
Savanni D'Gerinel 612713ab1b Improve event handling and the main loop 2024-05-05 23:27:19 -04:00
Savanni D'Gerinel fd444a620d Create an example UI and event handler 2024-05-05 22:50:38 -04:00
Savanni D'Gerinel 20b02fbd90 Update the Nix derivation 2024-04-30 22:26:12 -04:00
Savanni D'Gerinel 278ec27b4e Linting 2024-04-30 22:25:01 -04:00
Savanni D'Gerinel 8b7add37c1 Switch from slab_tree to nary_tree 2024-04-30 22:25:01 -04:00
Savanni D'Gerinel 5441a3c441 Adapt the app to the new slab tree 2024-04-30 22:25:01 -04:00
Savanni D'Gerinel b1374229f3 Calculate out the depth and width of each node 2024-04-30 22:25:01 -04:00
Savanni D'Gerinel bc5042c004 Start propogating the slab_tree up to OTG 2024-04-30 22:25:01 -04:00
Savanni D'Gerinel 0534143d6b Finish implementing GameTree.Clone and PartialEq 2024-04-30 22:25:01 -04:00
Savanni D'Gerinel d7f5269e15 Begin implementing traits for a game record 2024-04-30 22:25:01 -04:00
Savanni D'Gerinel c913e9da37 Convert the recursive parse tree to a slab GameTree 2024-04-30 22:25:01 -04:00
Savanni D'Gerinel c50bd652f1 Switch from my custom Tree setup to a slab tree in GameRecord 2024-04-30 22:25:01 -04:00
Savanni D'Gerinel 093e1f7f8a Start writing functions for finding a node within the tree 2024-04-30 22:25:01 -04:00
Savanni D'Gerinel 3c94f906a6 Update Cargo.nix 2024-04-19 12:27:17 -04:00
Savanni D'Gerinel 0aecaee760 Use pre-loaded images 2024-04-05 10:47:16 -04:00
Savanni D'Gerinel baeb458126 Create a resource manager that preloads the images 2024-04-05 10:06:52 -04:00
Savanni D'Gerinel da144a58ec Revise the graphics 2024-04-05 09:15:20 -04:00
Savanni D'Gerinel f09af67193 Add images for fancier stones 2024-04-01 00:14:15 -04:00
Savanni D'Gerinel 32391a46e7 Render the board in the background 2024-03-31 19:59:44 -04:00
Savanni D'Gerinel 0a62c96b0f Clippy 2024-03-31 19:36:44 -04:00
Savanni D'Gerinel 78863ee709 Cleanups 2024-03-31 18:16:41 -04:00
Savanni D'Gerinel 5cdcf0499c Improve ident calculation to help with tree drawing 2024-03-31 16:19:09 -04:00
Savanni D'Gerinel b982f2c1cc Start doing a bare basic rendering of nodes in a game tree 2024-03-31 14:09:48 -04:00
Savanni D'Gerinel 46b25cc6c5 Set up a BFS iterator over the node tree 2024-03-31 13:35:23 -04:00
Savanni D'Gerinel 9fbc630500 Game tree becomes a tree of UUIDs, not GameNodes
Doing this avoids reference lifetime hell
2024-03-30 11:00:54 -04:00
Savanni D'Gerinel b481d5d058 Adjust the coordinates calculated to be zero-based 2024-03-29 09:29:32 -04:00
Savanni D'Gerinel 7a06b8cf39 Work out how to calculate the horizontal position of each node 2024-03-29 09:10:38 -04:00
Savanni D'Gerinel 3192c0a142 Apply clippy to otg-gtk 2024-03-26 09:17:26 -04:00
Savanni D'Gerinel acf7ca0c9a Resolve clippy warnings on otg-core 2024-03-26 09:17:26 -04:00
Savanni D'Gerinel 64138b9e90 Resolve clippy warnings on SGF 2024-03-26 09:17:26 -04:00
Savanni D'Gerinel e587d269e9 Start on the foundations of a tree-drawing algorithm
I don't actually know what I'm doing. I've done some reading and from
that I'm doing experiments until I can better understand what I've read.
2024-03-26 09:17:26 -04:00
Savanni D'Gerinel 57aadd7597 Create the drawing area for the review tree 2024-03-26 09:17:25 -04:00
Savanni D'Gerinel b70d927eac Render the board with the completed game state. 2024-03-26 09:17:25 -04:00
Savanni D'Gerinel 3a7f204883 Add more test data and ensure the mainline is returned even with branches 2024-03-26 09:17:25 -04:00
Savanni D'Gerinel 642351f248 Return the mainline of a game that has no branches in it. 2024-03-26 09:17:25 -04:00
Savanni D'Gerinel d9bb9d92e5 Apply moves to the abstract board
To get here, I had to also build some conversion functions and make a
lot of things within the game record public
2024-03-26 09:17:25 -04:00
Savanni D'Gerinel 30e7bdb817 Render the grid of the goban 2024-03-26 09:17:25 -04:00
Savanni D'Gerinel 556f91b70b Set the size of the drawing area 2024-03-26 09:17:25 -04:00
Savanni D'Gerinel 894575b0fb Start on the new Goban component 2024-03-26 09:17:25 -04:00
Savanni D'Gerinel d964ab0d2f Minimal linting 2024-03-26 09:17:25 -04:00
Savanni D'Gerinel 74c8eb6861 Document the Goban representation in Core 2024-03-26 09:17:25 -04:00
Savanni D'Gerinel 3aac3b8393 Rename Game to GameRecord for disambiguation. 2024-03-26 09:17:25 -04:00
Savanni D'Gerinel 295f0a0411 Create the game review page and work on navigating to it with a navigation stack 2024-03-26 09:17:25 -04:00