Giter Site home page Giter Site logo

game-ticket_to_ride's People

Contributors

alh-repo avatar dsalazar10 avatar nasarios avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

alh-repo

game-ticket_to_ride's Issues

TrainCardDeck index out of bounds exception

Describe the bug
A clear and concise description of what the bug is.
There are only 2 cards in the deck but the loop goes out of bounds:

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 3, Size: 2
at java.util.LinkedList.checkElementIndex(LinkedList.java:555)
at java.util.LinkedList.get(LinkedList.java:476)
at model.TrainCardDeck.(TrainCardDeck.java:68)
at model.Board.(Board.java:31)
at ticket2ride.Ticket2Ride.main(Ticket2Ride.java:38)

To Reproduce
Steps to reproduce the behavior:

  1. Try to compile
  2. See error

Expected behavior
A clear and concise description of what you expected to happen.
We should be able to create a new TrainCardDeck:
TrainCardDeck trainDeck = new TrainCardDeck();

@NasarioS

Cannot resolve TrainCarCard symbols in TrainCardDeck class

Describe the bug
A clear and concise description of what the bug is.
TrainCardDeck class's "train card" List elements are named incorrectly.

To Reproduce
Steps to reproduce the behavior:
Static compiler error.

Expected behavior
A clear and concise description of what you expected to happen.
Currently the element is "TrainCarCard" but it should be "TrainCard".

Screenshots
If applicable, add screenshots to help explain your problem.
See lines Line 6, 8, 10, 12, 21, and 28 of the TrainCardDeck class.

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
Add any other context about the problem here.

Cannot resolve TrainPieces symbols in Player class

Describe the bug
A clear and concise description of what the bug is.
Player class's "pieces" List elements are named incorrectly.

To Reproduce
Steps to reproduce the behavior:
Static compiler error.

Expected behavior
A clear and concise description of what you expected to happen.
Currently the element is "TrainPieces" but it should be "Train_Pieces".

Screenshots
If applicable, add screenshots to help explain your problem.
See line 14 of the Player class.

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
Add any other context about the problem here.

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.