Scrabble Engine written in Swift. That's a course project for the Swift-3 course at @ Sofia University.
- You should have Swift correctly configured!
- Download the project.
- Go to project directory. You should be in 'Scrabble-Engine/' folder.
- Run
pwd
command in the terminal to be sure that you're in the right directory. One possible output could be:/home/Projects/Scrabble-Engine/
. - Run the code below in the terminal:
swift build
./.build/debug/Scrabble-Engine
or run in the terminal
./swift-compile-and-run.sh
That's it! You should have a working instance of the project.
Here is the Board class that stores information about the scrabble board and enum Direction object.
Here is the Cell class that stores information about single cell - is there a bonus and/or tile.
Here is the Tile class that stores information about single tile such as letter and its score.
Here is the Player class that stores information about single player such as name and score.
That's a file that store structs such as GameConfiguration and SavedGameData to help organizing the code.
Here is the Player static class that has useful methods for parsing and extracting information from the configuration files.