Commit graph

17 commits

Author SHA1 Message Date
JetSetIlly cd2a00d4ba logger.Log() and logger.Logf() now require a logger.Permission instance
the logger.Permission interface indicates whether the environment making
the logging request is allowed to create new log entries. the
environment.Environment type satisifies the Permission interface

logger.Allow is provided as a convienient way of indicating the the log
entry should always be created
2024-04-30 11:23:40 +01:00
JetSetIlly 3cff5da258 updated vidchess bot
can now work with vidchess level 2-8 as well as level 1

image searching now works with sha1 hashes throughout
2023-09-23 20:12:12 +01:00
JetSetIlly 395a0785a9 simplified input package by removing AllowPushedEvents()
pushed events are always available and do not have the same performance
impact as orignally thought
2023-08-03 06:53:35 +01:00
JetSetIlly 11fb367ff5 periperhal event PaddleSet now takes a pair of float32 values
float32 pair defined as ports.EventDataPaddle

added functions to convert the float32 to and from a playback entry.
conversion from the playback entry tolerates a single float32 value
meaning that old recording files will work

rename plugging.PortLeftPlayer and plugging.PortRightPlayer to just
plugging.PortLeft and plugging.PortRight
2023-02-27 21:27:21 +00:00
JetSetIlly 3aa5885ebe removed curated pacakge. replaced with wrapped errors
curated package predated the standard errors package introduced in
go1.13

the standard package does a better job of what curated attempted to do

the change of package also gave me a opportunity to clean up the error
messages a little bit
2023-02-13 21:58:39 +00:00
JetSetIlly 8ceeedd93b expanded list of paths in which stockfish is looked for
this relates to the experimental Video Chess bot only
2023-02-11 12:48:18 +00:00
JetSetIlly cdcbe6e5b5 spacejockey bot. basic for now but it works 2021-12-17 22:05:22 +00:00
JetSetIlly 9d8113df27 improved videochess bot
detection of black move (by vcs) improved

bot removes its own pixel renderer and audio mixer on quit
2021-12-14 08:10:53 +00:00
JetSetIlly a8df94f544 improved performance of input pacakge
pushed events are only serviced once per frame
2021-12-14 08:10:20 +00:00
JetSetIlly 58848acdf9 input system and ports system separated
playback/recorder and driven input systems moved out of the the ports
package and into a new input package. how the input systems interact has
been clarified and improved - for example, it is now posssible for a
playback file to be used to drive two emulations for comparison purposes

the debugger startup procedure has been clarified with two distinct
startup functions for playmode and debugger - each of which take
different arguments. the clarity has allowed the reintroduction of
recording and playback to the main play mode
2021-12-11 08:19:46 +00:00
JetSetIlly fe2bd37451 videochess bot behaves correctly if chess engine (stockfish) can't be found
cleanup up how bo GUI features are requested/discarded
2021-12-10 13:45:17 +00:00
JetSetIlly 4c665d465e videochess Feedback Image uses x/image package (scaling) 2021-12-05 22:05:35 +00:00
JetSetIlly 2942d35320 added ports.TimedInputEvent to accompany ports.InputEvent
the Time field was in ports.InputEvent but it didn't make sense to
specify a time value in all contexts
2021-12-05 22:05:35 +00:00
JetSetIlly 76d6d163b0 finished implementing the bots package. added the bots.wrangler package
videochess bot moved into the chess package

more flexible feedback from the bot
2021-12-05 22:04:01 +00:00
JetSetIlly 4df1eb071e added the ports.InputEvent type
this is now used when passing events and event data around. it also
records the port and time (in TV coordinates) which are required by
driver/passenger synchronisation and playback recording

removed television interfaces from signal package and moved the
interfaces to where they are needed
2021-12-05 20:17:43 +00:00
JetSetIlly 01f0a4f2ae videochess bot works with image (partly implemented) 2021-12-05 20:17:43 +00:00
JetSetIlly c94c4b9d4b experimental UCI bot. currently works with videochess 2021-12-05 20:17:43 +00:00