This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState, useEffect, useRef, useMemo } from 'react' | |
export default function Wordle() { | |
let [currentAttempt, setCurrentAttempt] = useState('') | |
let [bestColors, setBestColors] = useState(() => new Map()) | |
let [history, setHistory] = usePersistedHistory(h => { | |
waitForAnimation(h) | |
}) | |
useEffect(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="screen"> | |
<h1>Wordle</h1> | |
<div id="grid"></div> | |
<div id="keyboard"></div> | |
</div> | |
<style> | |
body, html { | |
background: #111; | |
color: white; | |
font-family: sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |