milwright commited on
Commit
1cdc73f
·
verified ·
1 Parent(s): cf74fae

Delete test-blanks.html

Browse files
Files changed (1) hide show
  1. test-blanks.html +0 -52
test-blanks.html DELETED
@@ -1,52 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Test Blanks Count</title>
7
- </head>
8
- <body>
9
- <h1>Testing Blanks Count</h1>
10
- <div id="output"></div>
11
-
12
- <script type="module">
13
- import ClozeGame from './src/clozeGameEngine.js';
14
-
15
- async function testBlanksCount() {
16
- const output = document.getElementById('output');
17
- const game = new ClozeGame();
18
-
19
- try {
20
- await game.initialize();
21
- output.innerHTML += '<p>Game initialized</p>';
22
-
23
- // Test level 1 (should have 1 blank)
24
- game.currentLevel = 1;
25
- const round1 = await game.startNewRound();
26
- output.innerHTML += `<p>Level 1: ${round1.blanks.length} blanks</p>`;
27
-
28
- // Test level 5 (should have 1 blank)
29
- game.currentLevel = 5;
30
- const round5 = await game.startNewRound();
31
- output.innerHTML += `<p>Level 5: ${round5.blanks.length} blanks</p>`;
32
-
33
- // Test level 6 (should have 2 blanks)
34
- game.currentLevel = 6;
35
- const round6 = await game.startNewRound();
36
- output.innerHTML += `<p>Level 6: ${round6.blanks.length} blanks</p>`;
37
-
38
- // Test level 11 (should have 3 blanks)
39
- game.currentLevel = 11;
40
- const round11 = await game.startNewRound();
41
- output.innerHTML += `<p>Level 11: ${round11.blanks.length} blanks</p>`;
42
-
43
- } catch (error) {
44
- output.innerHTML += `<p style="color: red;">Error: ${error.message}</p>`;
45
- console.error(error);
46
- }
47
- }
48
-
49
- testBlanksCount();
50
- </script>
51
- </body>
52
- </html>