![]() This one above is a challenge to avoid yourself for 100+ turns. Plus there's lots of challenges to compete in if you don't want to get too competitive against others. It's such a great community to be a part of and there's even live streamed league finals on Twitch. So choose your weapon - I mean, code - and get started. There are also lots of Community Starter projects for languages including: Those are the official starter snakes made by the Battlesnake team. There are starter snakes starting code for a bunch of popular languages: You can write your Battlesnake in any language. What if you want to do something other than Python? Battlesnake has you covered. If you like Python, this is a great project for upping your Python skills. This is useful for deciding how to refine your code and what strategies to build next. You can also rewatch games to see how your snake wins or loses. It's awesome going back to the league's ladder board every few days and checking on where your snake sits on the ladder. The leagues are really fun for seeing just how well your snake performs. When you have your snake 'ready' you can enter it into a league. What problems do you want to focus on and how? Do you want to avoid the walls first? Do you want to avoid other snakes second? What strategy do you want to win? Will you check your snake's games and refine the code? What about using machine learning? The Docs has a tonne of information about how to code your snake and what kind of requests the Battlesnake server will ask your server. Once you have your repo cloned or forked, you can start coding. ![]() If you really want to dive into the code, you can go straight to the GitHub repo and clone or fork the starter snake. The Battlesnake Docs explain how to get started with the click of a button. One of the coolest things about Battlesnake is how easy it is to get going. Your snake also can't run off the board or run into other snakes, including yourself. You must ensure your snake doesn't run out of health, so you need to eat the food on the board. Battling happens constantly and you can go back and watch your games whenever you want.Ī Battlesnake game consists of four snakes on a grid. Program your snake, upload the code, and watch your snake battle against others. This means you don't need to sit down and code against someone. Your snake is hosted on a server and requests are sent between the Battlesnake server and your server. Not only have I met some really cool people through live streaming this project, I've had a lot of fun upping my Python skills, and seeing the results of my coding.īattlesnake is a coding competition where you program a snake (remember the old Nokia phone game) and compete against others. I can definitely say this has been a super fun journey. I came across Battlesnake through a friend. So you want to learn Python? In fact if you want to learn any kind of coding, one of the best things to do, is work on a project.
0 Comments
Leave a Reply. |