We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small Basic AI Championship
(translated by Google translator)

Hi all.  Smile
I just happened to look at page http://www.nonkit.com/en/smallbasic/ on the Internet.
There I saw a picture that reminded me of the beginning of the computer era.
There was a time when we sat for hours with control panels in our hands, fighting primitive Football.
   
And again an idea came to my mind...
I propose to add a new type of AI sport to our list.
I propose to organize the same Client-Server system that we use in the game "AI Snake".

But !..  Exclamation
The uniqueness of our AI athletes will be that they will receive information about the situation on the field using their VISION !
AI athletes will need to SEE the situation on the field using the new "LDImage.FindImageInImage( )" feature.

Now that we can use "Aliases" and Diagrams to make Algorithm creation easier, maybe someone will decide to enter their AI athlete into the Small Basic Football Championship.
( I remind you that my "AI Rabbit" is currently the only contender for the title of Champion this year )
Reply
Hi all.  Shy

I want to start creating my own AI robot partner for playing retro football.
This version of football will not have a client-server structure.
The robot will be built directly into the program. But, like the client for the Championship, my robot will look at the screen "with its own eyes".

I can say that this game will not only be a version where a human is the player, but also a training version to create a client-server system for the competition between two robots.

( I would never have started making this game in Small Basic if we didn't have "Aliases" and "Diagrams". With these tools, even the robots looking at the screen with their "eyes" became easy targets for enjoyable creativity. Rolleyes  )
Reply
(translated by Google translator)

Hi all.  Shy
I created a new folder in my OneDrive: https://1drv.ms/f/s!AnoSlTzMqlL6jNwEee_Q...g?e=fFbV38
There are two files there.
One file is the Utility file, with which you can extract the SB code from the Diagram.
Another file is a diagram that shows the status of my Retro Football project.

I will develop this project as a real beginner.
I want to demonstrate the ease of creating a computer program when using Small Basic, SB-Prime and Diagrams.

Right now, for example, I opened the Diagram Editor and pasted onto a blank canvas the first components of my future program, which I copied from my previous diagram.
So far there are only three components: the Program icon; the Variable List icon; and the icon for the first action of the computer Program.

I deliberately did not follow the professional advice I saw on the site. ( https://learn.microsoft.com/en-us/archiv...c-graphics )

I started creating my program with the first thing that came to my mind.
At the very beginning of creating a new program, I mentally see in front of me only the Graphic Window (the main form) of the program. And nothing more. So I started by setting up the Graphics Window.

I want to demonstrate how using the Diagram will make it easy to create the entire System, even if you develop its parts in any order.  Rolleyes
Reply
Shy

Added a new diagram "Retro Football" which shows the changes made to the code.

( real pleasure  Tongue )
Reply
Hello.  Shy

I added to the "Retro Football" folder the next version of the Diagram (v0030), which contains the source code of the program and displays the Logic of its operation.  Cool

( by the way, can anyone tell me if you have any problems opening my OneDrive page using a browser and downloading files? )

Thank you.
Reply
(translated by Google translator)

Hi all.  Shy
Tests have shown that the performance of my Windows tablet is not sufficient to run the game "Retro Football".
Therefore, I am forced to switch to studying the physics engine built into the LD library.
I think I won't be able to create updates to my project for a few days. I will study the engine.

I wish you all success in your projects.  Wink
Reply
Ha!.. Of course!..
Using the engine makes it easier to make a program, and it will be more interesting to play!  Cool

When using the engine, both the human and the robot will be in the same conditions.
Both will receive information only through the visual channel.
Both will move their "players" in the same way.

This is interesting!  Wink
Reply
(translated by Google translator)

Well, great examples, great Guide from LitDev.  Shy

I think I'm ready to start creating code.  Rolleyes

( I have a feeling it will be very interesting )
[-] The following 1 user Likes AbsoluteBeginner's post:
  • litdev
Reply
I can't contain my admiration for this physics engine !!!  Exclamation
I don't even have enough imagination for WHAT this thing can do !!!

( when I finish "Retro Football" I will try to do something incredible Rolleyes  )
Reply
(translated by Google translator)

Hi all.  Shy
My "Retro Football" project has reached such an intermediate state where I can put the file online for testing and discussion.

https://1drv.ms/f/s!AnoSlTzMqlL6jNwEee_Q...g?e=fFbV38

In addition to this project file, I updated the Project Diagram file and the source code file of the Utility that extracts code from the Diagram.

When creating the game "Retro Football" the most problems I had was when creating the effect of blurring the image of a moving ball.  Smile

I was unable to implement the effect using only the Physics Engine capabilities.
Therefore, I created the "shadow" of the ball using only the methods of the Small Basic language.

I'm interested to know if there is a better way to create the ball blur effect.
If any of you know this, then write here, please.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)