Pravda

Timeline
Login

Timeline

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

About branch spoof

Working on the Spoof game.

This game is more complicated because it does not have a set number of players.

In order to determine when play starts, I want to have the following flow:

Player joins. If there are enough players (at least 2 or 3, haven't decided yet) and enough time has passed (thinking of a minute), play begins. If another player joins in the meantime the timer is reset.

This requires games to be able to set their own timers and be polled by the main event loop when they are done.

I also want to be able to warn a player if they spend too long without playing when it's their turn. This requires roughly the same thing.

In order to achieve this, I am changing the Game and Command datastructures.

29 check-ins related to "spoof"
2024-03-26
09:06
Adapting the structure to deal with more complex games and merging Spoof, but not ready yet. check-in: 223ad50bdb user: david tags: trunk
08:17
Merged improvements made on Rps and Dice into the Spoof branch and got things in order. Leaf check-in: d7057bb24d user: david tags: spoof
2023-11-06
08:09
Restructured event loop to use a single channel that receives fedi API notifications game-generated events. Got the tests that were passing, passing again. check-in: 846461bf2e user: david tags: spoof
2023-11-02
13:41
Streamlined rps removing needless fields. check-in: e5cb56ba12 user: david tags: spoof
13:09
Each game has a name so it can filter its own commands. Got some tests passing for spoof. check-in: 1615aff16d user: david tags: spoof
12:13
Join logic more or less done. check-in: f62d9e0de9 user: david tags: spoof
11:46
Some matching logic. check-in: 468923570e user: david tags: spoof
07:28
Rationalised imports. check-in: f603be55a8 user: david tags: spoof
2023-10-31
12:57
New release adding dice rolling. check-in: 1f0e07400c user: david tags: trunk
2023-10-27
11:51
Working on player functions for spoof. Fixed some things on Rps. check-in: f1a3a5762b user: david tags: spoof
07:13
Fixes to comments check-in: d8d3411bf6 user: david tags: spoof
2023-10-26
12:51
Some fix on main to suppress a type system warning. Split next into two according to whether it's a player or internal command. Starting on the player logic. check-in: 4ffe589384 user: david tags: spoof
2023-10-25
12:59
README fix. check-in: 6e6eef6346 user: david tags: spoof
12:38
Rationalised imports. Yes, this is not very useful. check-in: cbb09c7854 user: david tags: spoof
07:12
Merged changes. All working. check-in: 0676f7ea12 user: david tags: spoof
2023-10-23
23:17
I think the timeout on the reqwest client is not doing what I want. check-in: e4533883a2 user: david tags: trunk
2023-10-22
18:38
Merged with trunk, I want to keep the changes in sync. check-in: 7acdc3d486 user: david tags: spoof
17:18
Fixed reqwest feature to use rustls. check-in: 76eb631c08 user: david tags: trunk
16:17
Changed the streaming to notifications, which is the only thing the bot needs. check-in: f3803dc524 user: david tags: spoof
15:21
Added a timeout to the Reqwest client. check-in: 98295d54c9 user: david tags: spoof
15:17
Further work on spoof with some changes. check-in: e99c8a706b user: david tags: spoof
2023-10-21
21:39
Debugging. check-in: 0a0b5b24d6 user: david tags: trunk
2023-10-20
22:13
Merged improvements from trunk to the work on the branch. check-in: 017fdca748 user: david tags: spoof
21:38
Put the publish = false back in manifest to avoid accidental publishing. check-in: 56471fd7df user: david tags: trunk, v1
2023-10-19
20:24
All tests pass with the new data structures in place. check-in: 732aee3946 user: david tags: spoof
12:49
Working on adapting the game datastructures. check-in: 8f9b16579a user: david tags: spoof
11:18
Fixed so tests pass. check-in: 366cedc13b user: david tags: spoof
11:10
Working on Spoof: 1. Added a channel so games can set timers to ask to be polled or send replies without prompting. 2. Added GameEvent to communicate through it. check-in: 5d45b7a30e user: david tags: spoof
06:33
Comment fix. check-in: 17f5148669 user: david tags: trunk