Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Pointers on And, OR, and NOT gate style programming language withing AGK

Author
Message
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 27th Mar 2016 23:34
I want to construct a turn based robot game within AGK
The player first solders together a robot design on the development page
Then they put it to test (battle) other robots within a battle arena

Now I don't think it would be all that practical to use lots of if/then and case style commands
And not so sure about timer events working fairly for the given robots

The idea dates back to an old Atari st game which worked much the way I want (sorry forget the name)
C robots is another example you may have heard of and there are several java based ones which work with the event timer
but it has to be fair to all robots. Ie a short code version may be faster than one that checks for everything

examples (there could be many variants)

Robot 1
move
shoot
turn

Robot 2
scan
if robot shoot
else turn

Robot 3
block
shoot
move
turn

I had something when I was at UNI which was way too long ago which would've been perfect to convert to this style
of code as it broke up each command into segments and was very similar to the way the DOS command works.
but I no longer have it

So any pointers people can give me on this project would be greatly appreciated
fubar
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 28th Mar 2016 01:04
The following is link dating back to a very early apple version which might help clarify things better

https://en.wikipedia.org/wiki/RobotWar

but instead of the user programming the robot I was going to design a graphical interface that the user would solder in gates, with when and if they would scan for robots
shoot etc. This once completed would be saved and put into an arena with a selected number of robots. The CRobots (another version) was designed as a simple way to learn the language
while having some fun. It allowed for up to 50 robots at once I think from memory, and you could put them into a battle arena several times. And come up with statistics of basically
how it all went after a number of battles. I believe AppGameKit to have more than enough power to do things as even the TRS-80 could do it 30 years ago.

I have thought making some sort of array of the users robots commands but unsure how this could make use of gates properly.
But I'm hoping this project would spark some interest as it could also be used as a great introduction into gates like XOR NOR and XAND gates.
fubar

Login to post a reply

Server time is: 2024-05-06 12:52:01
Your offset time is: 2024-05-06 12:52:01