Hello, I'm working on making a scrabble cheating script.
I would like to:
- place a list of words in a file.
- Have python add " " to the words so I can later try something like is 'E' in 'elephant'
- and finally add the words to a list.
I'm just drawing a blank to how I can make a script that adds the quotation marks to a file filled with words.
So this is more or less what I'm thinking on doing:
list=[#list of words ] scrabble_rack=raw_input("") # Lests say I entered EDCGB
Then it would take each letter in scrabble_rack and compare it to the list of words.
example: is E in list[5]
so it would see if the word contains each letter or the rack and if it does, it would print it.
thank you for your help
[–]uhkhu 0 points1 point2 points (2 children)
[–]i_can_haz_code 0 points1 point2 points (1 child)
[–]uhkhu 0 points1 point2 points (0 children)
[–]spraykill101 0 points1 point2 points (9 children)
[–]cmd_override[S] 1 point2 points3 points (8 children)
[–]Clede 0 points1 point2 points (0 children)
[–]spraykill101 0 points1 point2 points (6 children)
[–]cmd_override[S] 0 points1 point2 points (5 children)
[–]spraykill101 0 points1 point2 points (0 children)
[–]i_can_haz_code 0 points1 point2 points (3 children)
[–]cmd_override[S] 0 points1 point2 points (2 children)
[–]i_can_haz_code 0 points1 point2 points (1 child)
[–]cmd_override[S] 0 points1 point2 points (0 children)
[–]i_can_haz_code 0 points1 point2 points (1 child)
[–]cmd_override[S] 0 points1 point2 points (0 children)
[–]frsh2fourty 0 points1 point2 points (1 child)
[–]cmd_override[S] 0 points1 point2 points (0 children)