Learning-Python-Team / Learning-Python-Team/word-game-tool

game_operation.py

Open
#30 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
7
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading game_operation.py and the existing word_validation and multiplier_score functions. Implement the game-board setup, current_game_state input and validation, perpendicular_word_finder, and score_calculator so placed words fit the board, perpendicular words and multipliers are scored, and users can stop entering non-scoring words.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.