Move Pak Wahono's chess club standings board from plain JavaScript to Vue, one piece an afternoon. 14 levels, right in the browser.
What the levels ask
Mr. Wahono wrote his standings board in plain JavaScript in 2012. After every win, catatMenang adds a point and then writes the number into the player's row. This afternoon Mrs. Sari beat Mr. Tono twice, but the Pemimpin line on the board still says -. Fill in the last line of catatMenang.
Mr. Wahono moves his board to Vue. The template in App.vue reads poin in three places: the two scores and the Pemimpin line. Fill in catatMenang so that one win changes all three.
The neighbourhood head holds the Babak berikutnya button. The board must say Babak 1 when it opens, then 2, then 3. Fill in the three holes: how babak is made, how the script adds to it, and how the template shows it.
The chess clock on the board is still old code, jam-lama.js, and Mr. Wahono does not want to replace it yet. This afternoon only the standings move to Vue. Pick the element the Vue app is mounted on in main.js, so that the title, the old clock and the Vue standings run together.
Mr. Wahono copied the board's code from the BelajarWeb.dev practice editor into App.vue on his laptop. In the practice editor everything ran. In the real project, the board is empty. Fill in the first line of <script setup>.
The neighbourhood head and Bagas drew the first game, then the neighbourhood head won with white. The board must write ½-½ for a draw and any other result as it is, and the result line gets the seri class only while the result is a draw. Fill in the result text and its class.
Round 2 is played on two tables. KartuMeja is placed twice in App.vue, one per table, and each card counts its own table's moves. Mr. Tono and Mr. Dodi move on table 1, then Mrs. Sari on table 2. Fill in the line that makes langkah in KartuMeja.vue.
The game card only shows while a game is on. Grandma Marni and Rara play first, Mr. Wahono writes on their card, and the game ends. When Mr. Harun and Mr. Bayu start, the card has to start from scratch: 0 moves, an empty note. Pick how KartuPartai is shown.
The standings are sorted again whenever someone wins. Rara writes main putih in the note of Mr. Slamet of Neighbourhood 04, then he wins twice and moves up. The note has to go with its row. This tournament has two Mr. Slamets. Pick the key for each row.
Tapping a row of the standings opens that player's details. The +1 button sits inside the row. Mr. Dodi wins twice and Mr. Wahono taps +1 twice, then Mr. Bayu taps Bagas's row. The details must not open because of +1, and every +1 tap must count. Fill in the button's click listener.
Sign-up for next Sunday's tournament. Bagas types his name, picks Pelajar, ticks bawa papan, then taps Daftar. After that the form has to be empty again for Grandma Marni. Bind the name field and the checkbox to the data.
Mr. Harun records Grandma Marni's points: he types 1 for a win and 0.5 for a draw, then taps Tambah. The total must be 1, then 1.5. Pick how the value field is bound.