Skip to content

AlbertoPizzi/chess-app2023

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess App

This repository is a base example of how to include edu.austral.dissis.chess:chess-ui as a dependency. It runs with a mock version of a chess engine, provided by the ui dependency, that must be replaced with an actual implementation of the engine.

Requirements

This project depends on a package published in the GitHub Packages Registry. In order to download it a GitHub token must be used. Instruction on how to create a GitHub personal token are here. Once created the following environment variables must be defined:

  • GITHUB_USER
  • GITHUB_TOKEN

Implementing the engine

In order to implement the engine of the chess-ui dependency to interfaces must be implemented:

  • edu.austral.dissis.chess.gui.GameEngine
  • edu.austral.dissis.chess.gui.ImageResolver
  • edu.austral.dissis.chess.gui.ImageResolver

By default edu.austral.dissis.chess.gui.DefaultImageResolver should be enough implementation of ImageResolver, but the gui only includes the following images:

  • archbishop_black
  • archbishop_white
  • bishop_black
  • bishop_white
  • chancellor_black
  • chancellor_white
  • king_black
  • king_white
  • knight_black
  • knight_white
  • pawn_black
  • pawn_white
  • queen_black
  • queen_white
  • rook_black
  • rook_white

Running

To run the application use:

./gradlew run

About

This is the Chess app 2023

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%