King of Bots (KOB in short) is an AI programming battle platform based on Springboot and Vue. The background is a Snake Blockade on a 13*13 board. Players can design different AI algorithms to control the movement of the snake to make the enemy nowhere to go and win.
The game link is www.dlwsdqdws.com. Welcome to play. Please register an account for your first play.
Game matching and operations. Need sign in first.
#### Using keyboard as input W/A/S/D -> up, left, down, right #### Writing code as input Players can design different AI algorithms such as Min-Max or Artificial Neural Network.A simple search algorithm sample as follows:
public class Bot implements java.util.function.Supplier<Integer>{
static class Cell{
public int x,y;
public Cell(int x, int y){
this.x = x;
this.y = y;
}
}
public Integer nextMove(String input) {
// write your algorithms here
}
@Override
public Integer get() {
File file = new File("input.txt");
try {
Scanner sc = new Scanner(file);
return nextMove(sc.next());
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
}
}
}
Show ALL players' matching history, including players' usernames and photos, winner and matching video.
Display the global leaderboard and especially the top three players.
Java 1.8
Vue 5.0.8
mysql 8.0.31
node 16.14.2
- Display issues on Safari.
- Support for more programming languages.
- Introduce more games.
- Adapt for mobile devices.