Skip to content

game_operation.py #30

@JiggsUK

Description

@JiggsUK

Covers the setup of the game board and functions that require user input.

  • Create a new game board object for use in the below functions

Function: current_game_state
Purpose: Allows user to enter the current state of play in their game
Acceptance Criteria:

  1. Prompt user to enter any words that have already been played
    a. consider how to locate where the word should go on the board
  2. In addition to the word_validation checks, also need more validation of word input that includes checking:
    a. start/stop location is not off the board
    b. the word will fit in the location the user gives
  3. This will need to allow user to stop entering non-scoring words so they can move on to the word they want scored

Function: score_calculator
Purpose: Asks for word to be scored and location, validates it, checks for perpendicular words on the board and multipliers, calls multiplier_score to calculate
Acceptance Criteria:

  1. Calculates score of any word formed additionally to the selected word.
  2. Must account for any multiplier tiles.
  3. Returns total score of perpendicular words formed, which can be added to the word score to form the total score for the given word

Function: perpendicular_word_finder
Purpose: Finds any additional words that are formed from placing the user word.
Acceptance Criteria:

  1. Returns collection of additional perpendicularly formed words for use in score calculation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions