One of the best ways for a programmer to train is by playing and accepting challenges. I still remember the case of Elevator Saga, but today we have something different: creating and programming robots to fight each other. This is possible thanks to Robocode, an open source project based on Java that has been around for several years, with abundant documentation and frequent updates. What are you waiting for? Program a robot and make it destroy everything in its path.
Every time I talk about learning to program, I don't do it thinking about the needs of big companies that highlight the lack of experts in the market, but about what you could achieve on your own once you master code. It's not even mandatory to follow a university degree to learn a particular language (although in some environments they value degrees), and that has led to the creation of many high-intensity campuses. However, nothing stops you from taking a self-taught path. In fact, most programmers resort to self-learning to improve and stay updated. One way to stimulate that self-learning is by playing, which brings us to Robocode.
Program a Battle Robot in Robocode
"Build the best, destroy the rest" is the phrase that defines Robocode, an environment that invites Java and .NET programmers to create and program their own virtual robots with the sole objective of reducing each other to pieces. The Robocode wiki recommends novice fighters simulate a battle using several test robots. When organizing a battle, it's also possible to alter or install new rules, but at the end of the day, everything comes down to giving life to a new robot. The wiki is blunt: making a robot can be easy, making it a winner is not. Your first robots will make serious mistakes and miss many shots. Even so, the code doesn't look very complicated. Direction of movement, distance, turret rotation, and firing are the four essential parameters. If you want to know more, don't hesitate to study the code of the sample robots.
The latest version of Robocode was released on January 5, fixes several bugs, and makes minimal changes. Users who wish to program in .NET will need to download the previous build, which has the necessary plugin. The only major technical requirement for Robocode is quite obvious: you need to install Java for it to work. The stable version is sufficient, but I know many users don't like that idea. Still, Robocode deserves our time. Maybe in a virtual machine? Go ahead and try it!
Official site and download: Click here
https://old.neoteo.com/untrusted-aventuras-con-javascript/