Learning-Python-Team / Learning-Python-Team/word-game-tool
game_operation.py
Nobody has claimed this yet.
- 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:
- Prompt user to enter any words that have already been played
a. consider how to locate where the word should go on the board - In addition to the
word_validationchecks, 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 - 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:
- Calculates score of any word formed additionally to the selected word.
- Must account for any multiplier tiles.
- 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:
- Returns collection of additional perpendicularly formed words for use in score calculation.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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