AB,
Store data locally in a file (I would start with this), perhaps written by the server that has overall control, maybe using File.GetSettingsFilePath.
To store on the web so users can share, there is:
LDNetwork.HighScore - a single user name and integer highest score for games.
LDNetwork.SetGameData & GetGameData - store specific data for a game. this will be an array of data associated with a game name.
================================
I loaded your 3 programs, followed your clear instructions and for me I could run them all from the same folder and same instance of SB-Prime. Your initial default AIs work well and the game messaging is good.
Only comment I have about the interface is that for me the main server On/Off switch doesn't display so well, reduced font sizing and text positioning below works better for me (could be my display).
I am wondering how you see this evolving. If the rabbit moves randomly then the best the snake can do is move towards the rabbit as you do. If the rabbit can see the snake, then it can always move away from it, so we need to introduce some other features and limit what each can know about the other in some way. This would be done in the server I would think - it sets the parameters of the game which the AI bots have to live within.
See this thread Post 66 where I had some ideas, but I am interested to see what you or others think.
Store data locally in a file (I would start with this), perhaps written by the server that has overall control, maybe using File.GetSettingsFilePath.
To store on the web so users can share, there is:
LDNetwork.HighScore - a single user name and integer highest score for games.
LDNetwork.SetGameData & GetGameData - store specific data for a game. this will be an array of data associated with a game name.
================================
I loaded your 3 programs, followed your clear instructions and for me I could run them all from the same folder and same instance of SB-Prime. Your initial default AIs work well and the game messaging is good.
Only comment I have about the interface is that for me the main server On/Off switch doesn't display so well, reduced font sizing and text positioning below works better for me (could be my display).
Code:
GraphicsWindow.FontSize = 6
GraphicsWindow.FontBold = "True"
LDImage.AddText(img_txt_OFF, "OFF", 1, 1, "White")
I am wondering how you see this evolving. If the rabbit moves randomly then the best the snake can do is move towards the rabbit as you do. If the rabbit can see the snake, then it can always move away from it, so we need to introduce some other features and limit what each can know about the other in some way. This would be done in the server I would think - it sets the parameters of the game which the AI bots have to live within.
See this thread Post 66 where I had some ideas, but I am interested to see what you or others think.