MineChess
  • MineChess Wiki
  • How to Start
  • How to Play: vs Player
  • How to Play: vs Computer
  • Arena Editing
  • Config.yml Tutorial
  • Inventories.yml Tutorial
  • Items Tutorial
  • Actions
  • Commands and Permissions
  • PlaceholderAPI variables
  • API
  • FAQ
  • Resources
    • Arena schematic
    • Resource Pack 1.21.3-
    • Resource Pack 1.21.4+
  • Default Files
    • inventories.yml
    • messages.yml
Powered by GitBook
On this page
  • Joining an Arena
  • How it Works
  • Difficulties

How to Play: vs Computer

PreviousHow to Play: vs PlayerNextArena Editing

Last updated 15 days ago

This is a recently added complex feature, that's why it's possible you can find bugs. If so, please tell me in the discussion of the SpigotMC page or via private message.

MineChess+ exclusive feature.

Joining an Arena

To play vs the computer the user needs to use the following command: /chess joincomputer <difficulty>

You can create your own difficulties on the player_vs_computer.difficulties option in the config.yml file. There are 3 options by default: easy, normal, hard.

How it Works

The game works exactly as a player vs player game, but instead there are some considerations:

  • When the player uses the command, an empty already created arena is selected.

  • The game mode is temporally set to ARENA_TIME, which means the arena will have a certain amount of time.

    • If the arena game mode was previously set as PLAYER_TIME, the turn_time property will be selected from the default values on the config.yml file.

  • The player will always start first.

  • On player vs computer games, there are no rewards, and player stats (wins, loses, ties) don't change.

  • If the player leaves the arena, the game end instantly, making the arena available for other players to play.

  • The plugin uses to search for computer movements.

Difficulties

As said before, you can create multiple difficulties in the config.yml file. There are some parameters you can change on each of them.

player_vs_computer:
  # You can create your own difficulties
  # max_depth:
  #     How many turns should the computer simulate. A greater value increases difficulty but more
  #     processing is necessary. Avoid to set it higher than 4.
  # randomness:
  #     How many random options should the computer have to choose. A lower value increases difficulty but
  #     can lead to movements being too repetitive.
  # max_delta:
  #     The computer uses this value to get rid of random options that are not good movements.
  #     A lower value increases difficulty.
  # error_chance:
  #     Chance between 0 and 1, that the computer makes a mistake and selects a bad movement.
  difficulties:
    easy:
      max_depth: 2
      randomness: 10
      max_delta: 200
      error_chance: 0.4
    normal:
      max_depth: 2
      randomness: 10
      max_delta: 120
      error_chance: 0.2
    hard:
      max_depth: 3
      randomness: 8
      max_delta: 80
      error_chance: 0
alpha-beta prunning