A new project, warriorjs, has been released today. The introduction reads:
Official website & documentation: https://warrior.js.org/
Installation is very simple, just through NPM (front end students must be ~)
All that is left is to write the logic and type the command.
Well, as profound as it seems. But to put it simply, is a need to write JS to play a small game, to climb JS world tower finally get JS world holy sword (emmmm…) . So how do you play it? You can see the picture below.
Write the action logic for warrior in the Player class.
We are only responsible for executing the action, not for its implementation. Call warrior.walk() to advance; To attack, call warrior.attack().
There are also action APIS that you need to get through the level, so I won’t reveal the story here. Of course, there is no official documentation either.
Games, of course, work. This game is run on the command line ~ so graphics card what don’t worry about > <! Let’s see how it works
The box is the map for this level. At sign is us. Of course, there are enemies, hostages and so on. This also needs to know through the pass oh ~
Archer range 2 is not available on the official website.
Overall, it’s an interesting game (after all, it’s nearly 6K Star). The game gets harder and harder as the game progresses. But one feeling I have is endless if statements. Asked a gay friend, said this is actually a kind of reinforcement learning…… If you like JS, please try it
Now we are in the sixth level and we are stuck
Those who want to try it, please come on
Finally, here’s my current logic and level description
This is a subscription number for writing whatever comes to mind. Animation, Japanese, technology, perception, will have oh ~ why not add a concern to let us learn and progress together!