Skip to content

Commit

Permalink
feat: Update Wordlist
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Dec 6, 2023
1 parent 02f567e commit a4a379a
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 68 deletions.
143 changes: 77 additions & 66 deletions src/components/modals/InfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,78 +2,89 @@ import { Cell } from '../grid/Cell'
import { BaseModal } from './BaseModal'

type Props = {
isOpen: boolean
handleClose: () => void
isOpen: boolean
handleClose: () => void
}

export const InfoModal = ({ isOpen, handleClose }: Props) => {
return (
<BaseModal
title="So funktioniert's:"
isOpen={isOpen}
handleClose={handleClose}
>
<p>
Errate das Wörtchen des Tages in 6 Versuchen. Nach jedem Versuch wird
mit Farben angezeigt, wie nah dein Wort der Lösung war:
</p>
return (
<BaseModal
title="So funktioniert's:"
isOpen={isOpen}
handleClose={handleClose}
>
<p>
Errate das Wörtchen des Tages in 6 Versuchen. Nach jedem Versuch
wird mit Farben angezeigt, wie nah dein Wort der Lösung war:
</p>

<div className="flex justify-center mb-1 mt-4">
<Cell value="A" />
<Cell value="L" />
<Cell value="L" />
<Cell value="E" status="correct" />
<Cell value="S" />
</div>
<p>Das E kommt im Wort an der richtigen Stelle vor.</p>
<div className="flex justify-center mb-1 mt-4">
<Cell value="A" />
<Cell value="L" />
<Cell value="L" />
<Cell value="E" status="correct" />
<Cell value="S" />
</div>
<p>Das E kommt im Wort an der richtigen Stelle vor.</p>

<div className="flex justify-center mb-1 mt-4">
<Cell value="L" status="present" />
<Cell value="A" />
<Cell value="U" />
<Cell value="C" />
<Cell value="H" />
</div>
<p>Das L kommt im Wort vor, jedoch an anderer Stelle.</p>
<div className="flex justify-center mb-1 mt-4">
<Cell value="L" status="present" />
<Cell value="A" />
<Cell value="U" />
<Cell value="C" />
<Cell value="H" />
</div>
<p>Das L kommt im Wort vor, jedoch an anderer Stelle.</p>

<div className="flex justify-center mb-1 mt-4">
<Cell value="O" />
<Cell value="T" />
<Cell value="T" />
<Cell value="O" />
<Cell value="S" status="absent" />
</div>
<p>Das S kommt nicht im Wort vor.</p>
<div className="flex justify-center mb-1 mt-4">
<Cell value="O" />
<Cell value="T" />
<Cell value="T" />
<Cell value="O" />
<Cell value="S" status="absent" />
</div>
<p>Das S kommt nicht im Wort vor.</p>

<p className="mt-4">
Jeden Tag um Mitternacht wird ein neues Wörtchen freigeschaltet. Hast du
Feedback oder willst dein Ergebnis teilen? Schreibe ins{' '}
<a
href="https://forum.sofacoach.de/t/1888"
className="underline font-bold"
>
Sofacoach-Forum
</a>
.
</p>
<p className="mt-4">
Jeden Tag um Mitternacht wird ein neues Wörtchen freigeschaltet.
</p>

<p className="mt-6 italic text-sm text-gray-500 dark:text-gray-300">
Wörtchen ist ein deutschsprachiger Klon von{' '}
<a
href="https://www.powerlanguage.co.uk/wordle/"
className="underline font-bold"
>
Wordle
</a>
. Den Quellcode findet ihr{' '}
<a
href="https://github.com/diondiondion/woertchen/"
className="underline font-bold"
>
auf Github
</a>
.
</p>
</BaseModal>
)
<button
type="button"
onClick={handleClose}
className="mt-3 w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm"
>
Spielen
</button>

<p className="mt-4">
Hast du Feedback oder willst dein Ergebnis teilen? Schreibe ins{' '}
<a
href="https://forum.sofacoach.de/t/1888"
className="underline font-bold"
>
Sofacoach-Forum
</a>
.
</p>

<p className="mt-5 italic text-sm text-gray-500 dark:text-gray-300">
Wörtchen ist ein deutschsprachiger Klon von{' '}
<a
href="https://www.nytimes.com/games/wordle/index.html"
className="underline font-bold"
>
Wordle
</a>
. Den Quellcode findet ihr{' '}
<a
href="https://github.com/diondiondion/woertchen/"
className="underline font-bold"
>
auf Github
</a>
.
</p>
</BaseModal>
)
}
8 changes: 6 additions & 2 deletions src/constants/wordlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,12 @@ export const WORDS = [
'kiosk',
'zehrt',
'nehmt',
]

// AB HIER SIND DIE WÖRTER NICHT GEPRÜFT.
// Die Wortliste enthält englische Wörter oder Ortsnamen
// AB HIER SIND DIE WÖRTER NICHT GEPRÜFT.
// Die Wortliste enthält englische Wörter oder Ortsnamen
// und Doppelvokale statt Umlaute. Diese Wörter sollten entfernt werden.
/*
'kurde',
'zebra',
'zieme',
Expand Down Expand Up @@ -1489,3 +1492,4 @@ export const WORDS = [
'blume',
'gehen',
]
*/

0 comments on commit a4a379a

Please sign in to comment.