Use PYTHON!!! NOT Java or anything else!!
Function name : crazy_scrabble
Parameters : word (string), current points (int), double word score
(boolean)
Returns: int
Description : You are playing scrabble with a friend, and you
thought you knew how to calculate how many points you have, but
your friend suddenly starts making up all these crazy rules. Write
a function that helps keep track of how many points you have with
these new rules:
● Each 'k', 'm', 'p', 'x', 'y', and 'z' earns you 7 points.
● 'c' and 's' are worth 4 points each.
● Each vowel ('a','e','i','o','u') you causes you to lose 2 points.
● All other letters are worth 1 point.
● Each time a letter is reused in a word, the player loses 1 point.
● If your word is more than 6 letters long, you get a bonus of 3 points.
● If the double word score is True and the point total for the word is positive ( > 0),
the player receives double the points for the word.
The function should return the player’s new point total. Assume that the words will not be empty strings and will only consist of lowercase letters from a to z.
Note: A player cannot have an overall negative point total. Return 0 if the point total would be negative after the new word the player has played. For example, if a player currently has 7 points but would lose 9 points from their new word, the player should have 0 points now, not -2 points.
Test Cases:
>>> crazy_scrabble('xylophone', 25, False)
45
>>> crazy_scrabble('seal', 0, True)
2
>>> crazy_scrabble('oranges', 7, True)
15
REMEMBER, PLEASE USE PYTHON ONLY
def crazy_scrabble(word, current_points, double_word_score):
points = 0
for i in range(len(word)):
ch = word[i]
if ch in "kmpxyz":
points += 7
elif ch in "cs":
points += 4
elif ch in "aeiou":
points -= 2
else:
points += 1
if ch in word[:i]:
points -= 1
if len(word) > 6:
points += 3
if double_word_score and points > 0:
points *= 2
points += current_points
if points < 0:
points = 0
return points
print(crazy_scrabble('xylophone', 25, False))
print(crazy_scrabble('seal', 0, True))
print(crazy_scrabble('oranges', 7, True))

Use PYTHON!!! NOT Java or anything else!! Function name : crazy_scrabble Parameters : word (string), current...
Function name: crazy_scrabble Parameters : word (string), current points (int), double word score (boolean) Returns: int Description: You are playing scrabble with a friend, and you thought you knew how to calculate how many points you have, but your friend suddenly starts making up all these crazy rules. Write a function that helps keep track of how many points you have with these new rules: ●Each 'k', 'm', 'p', 'x', 'y', and 'z' earns you 7 points. ●'c' and 's'...
Python
String Product Function Name: string Multiply Parameters: sentence (str), num (int) Returns: product (int) Description: You're texting your friend when you notice that they replace many letters with numbers. Out of curiosity, you want to find the product of the numbers. Write a function that takes in a string sentence and an int num, and find the product of only the first num numbers in the sentence. If num is 0, return 0. If num > O but there...
Methods: Net beans IDE Java two methods. Identifier: calculateScore(String word) Parameters: word – the word for which you should calculate the points in Scrabble Return Value: int – the number of points for the parameter word Other: This method should be static. This method should use the following system for scoring: 0 – blank 1 – e, a, i, o, n, r, t, l, s, u 2 – d, g 3 – b, c, m, p 4 – f, h,...
Question 2: Finding the best Scrabble word with Recursion using java Scrabble is a game in which players construct words from random letters, building on words already played. Each letter has an associated point value and the aim is to collect more points than your opponent. Please see https: //en.wikipedia.org/wiki/Scrabble for an overview if you are unfamiliar with the game. You will write a program that allows a user to enter 7 letters (representing the letter tiles they hold), plus...
C++ programming: Write a program to score a two player game of
scrabble. The program reads the player number, word played and the
squares on the board used for each word played then reports the
scores for each word and the total score for each player.
• All information is read from the file, moves.in.
• Each line of the file contains a player number (1 or 2), the
word and the board spaces
used.
• The words are entered...
For this assignment you will create a one-player variation of the game BlackJack. The game will be divided into five rounds. The goal of each round is to accumulate a hand of cards that gets as close to 21 without going over. At the beginng of the game you will start with a score of 100 points. After each round, the difference between your hand and 21 will be subtracted from your total score. The object of the entire game...
In PYTHON 3- Implement a subclass (described below) of "Word Guess", a variant of the game Hangman. In this game, a word is first randomly chosen. Initially, the letters in the word are displayed represented by "_”. For example, if the random word is "yellow”, the game initially displays "_ _ _ _ _ _”. Then, each turn, the player guesses a single letter that has yet to be guessed. If the letter is in the secret word, then the...
Language: PYTHON Function name : favorite_day Parameters : list of tuples (dates), int (weekday, 0-6, Mondays are 0), int (day of the month 1 to 28) Returns: dates: list of tuples Description: Imagine that you have a favorite weekday, and want to see if certain days fall on that weekday. Using the calendar module from the Python standard library , write a function which takes in a list of tuples formatted like [(month, year), etc.], your favorite weekday, and a...
I am trying to make a word guessing game on java, where there are four letters and you have 10 guesses to try and guess the letter combination. When I try to play, it says every combination of letters I enter is correct. For example: "You have 10 guesses left. Enter your guess: wxyz There are 4 correct letter placements. Congrats!" I emailed my professor and she said one of my methods is wrong because I'm only checking for specific...
Python
The Python "<" and ">" comparison operators can be used to compare which string variable has a greater value based on comparing the ASCII codes of the characters in each string, one by one. To take some examples: "tets" > "test" returns True because the third letter of the first string, "t", has a greater value than the third letter of the second string, "s". "testa" > "test" returns True because—while the first four letters in both words are...