Giter VIP home page Giter VIP logo

scrabble's Introduction

Scrabble by DarkMode.

Java implementation of the popular word game, Scrabble.
Developed for COMP20050: Software Engineering Project 2 at UCD.

Getting Started

Follow these instructions to get a copy of the project running on your local machine.

Prerequisites

Java 13 is required for the project. Install JDK 13 from Oracle here, in case you don't have it.
Note: Although JavaFX does not come bundled with JDK 13, Gradle manages the JavaFX requirements with plugins.

Build and run

Clone the repository, then (using Gradle):

  • Build project and run JUnit tests
./gradlew build
  • Run the game
./gradlew run

Note: If you'd like to run the JAR file created by Gradle, you would need to install JavaFX separately, set path to the installed JavaFX and add the required VM arguments --module-path /path/to/javafx/lib --add-modules javafx .controls,javafx .fxml,javafx.web. Building from source with Gradle is simpler (as shown above).

Dark Theme:

Light Theme:

Documentation

Use the command to generate API documentation under build > docs > javadoc:

./gradlew javadoc

TODO/Upcoming Features

  • Fix MacOS display issue
  • Integrate Scrabble bot into the main branch

Authors

Team 15: DarkMode.

Acknowledgements

  • Dr. Chris Bleakley (lecturer)
  • Duncan Wallace (TA), and the team of lab demonstrators.

scrabble's People

Contributors

amplifiedhuman avatar duncan-w avatar katarinac avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

scrabble's Issues

Scoring every possible word

The logic for scoring words depends on a word being placed on the board first. When trying to find the highest-scoring move from the list of all moves, this needs to be taken into account, possibly by creating copies of the board, player, frame, and pool and using placing the words in the copy objects. Other constants under Scoring should also not be modified.

MoveGenerator

Possible issues in move generation algorithm. No words are being displayed when all moves are printed. Anchor squares generation is working correctly though.

JavaFX issue Windows vs Mac/Linux

The game window and its component nodes are sized differently on Windows vs unix (possibly due to difference in pixel density), need to tweak the stylesheets (px vs em) and constants in GameView.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.