Initalize repo

This commit is contained in:
BaerbelBox
2022-03-31 15:21:47 +02:00
parent 557f3e9b31
commit 7cf65ef092
98 changed files with 15860 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from FaustBot.Model.HanDatabaseProvider import HanDatabaseProvider
import csv
HanDBProvider = HanDatabaseProvider()
wordList = open("HangmanLog")
wordListWords = csv.reader(wordList, delimiter=';', quotechar='|')
randomChoicePool = []
for word in wordListWords:
print(word)
print(word[1].strip())
no = False
for char in ['ä','ü','ö','ß']:
if char.upper() in word[1].strip().upper():
no = True
if not no:
HanDBProvider.addWord(word[1].strip())