[Update 3.05] AI tournaments, JSON scenarios, two-factor authentication and lots of improvements
Hi everyone!
Here is 3.05, and it's a big one: AI tournaments are finally here, along with a nice pile of improvements, many of them coming from your forum suggestions again (thanks to everyone credited in the changelog :)). The full list is here: https://leekwars.com/release/3.05
AI tournaments
- A new game mode, in the menu right after the Garden: here it's not your leek that fights, it's your AI. Every week, from Monday to Saturday, there are 6 rounds, one per day. For each round a mode is drawn (solo, farmer, Battle Royale, team with turrets or 8 vs 8 war with mixed players) and imposed leeks are generated at random: level, characteristics, weapons and chips. Everyone gets exactly the same ones, only the AI makes the difference!
- You register one AI for the whole week. On the morning of each round, a warm-up reveals the leeks of the day: you have the whole day to adapt your code and test it. The following night, at 6 am (Paris time), your AI is frozen and plays dozens of fights against the others: a talent per round, a daily ranking and an overall ranking for the week.
- Fights take place on a new map, a chessboard, which sets up the position of a famous chess game in every fight.
- Up for grabs: 1M, 500,000 and 250,000 Habs for the podium of each round, 10M, 5M and 2M for the podium of the week, and a new category of 20 chess-themed trophies (from Pawn to World Champion, plus a few surprises like Zugzwang or Fianchetto).
- Each round's page shows the night live, the kept fights, and "My stats": your wins, draws and losses, your talent match after match, and your AI's operations per turn, RAM (in LeekScript), warnings and errors. You can also pick your leeks' look for the week (skin, hat, held weapon…).
- The first week starts this Monday, November 23rd! It's brand new, so there will surely be things to adjust: tell us what you think on the forum :)
Programming and editor
- A test scenario can now be written in a .json file of your AIs (type
leek-wars-scenario): leeks by name or fully described, AIs, loadouts, map, seed. The editor shows it in a scenario editor next to the text, the test window lists these files, and the test button of an open scenario runs it. Handy to version your scenarios in git or share them.
- An Output tab shows what your AI printed during the last test, and the ▶ button now starts the test right away (the setup moves to the button next to it). An option also opens the test fight on its own page (thanks to Proutmouth).
- A breadcrumb above the code, an "open files" filter in the problems, the full commit message in the git history, and "Analyze" which details your AIs' storage folder by folder. With LW+, that storage goes from 10 to 50 MB.
resurrect(entity, cell, chip) takes a 3rd parameter to pick the chip, and Resurrection now really gives back half of the life even when Awakening is also equipped.
- In Python and JavaScript, the operation count no longer depends on the other fights running at the same time (thanks to DEVaporator), and the docs are now shown in your language. Plus a series of operation cost fixes in LeekScript (thanks to Iroh and Raquil).
- The
BOSS_* constants in the documentation show the boss, its level and its ranking.
Fights and trophies
- An animated end screen, "Victory!", "Defeat" or "Draw", before the report.
- A boss fight's loading screen shows the boss surrounded by its mobs, and mob turns that touch no one are played fast-forward. Life bars of nearby entities stack up instead of overlapping (thanks to Tabarius).
- Your trophy page suggests the next trophies to aim for, with their ease in stars, and a trophy's page shows its whole family.
- After a defeat, beginners get a "Why?" button that explains what went wrong. A challenge report has a "Redo" button (R key) that restarts the same fight, same seed.
- In team fights, the composition's name is shown under each team (thanks to FdHP), and the history got a refresh (thanks to FdHP too).
Account and security
- Two-factor authentication arrives in the settings: a code from a phone app on top of the password, and backup codes in case the phone is lost. You can also change your e-mail address without access to the old one, the password is enough (thanks to Joalien).
Market, leek, forum and chat
- In the market, a "My level" filter hides what your leeks can't equip yet, and craftable hats and potions are listed with where to find their scheme (thanks to Smartiz).
- The capital window has two pie charts (how your capital is spread, what your components bring), a characteristic's tooltip details each share, and the level-up window offers "Equip" for an item you already own.
- On the forum, a Drafts button finds the replies and topics you started (thanks to Smartiz), topics can be sorted by clicking the headers, and Bugs and Suggestions show the top 5 in Beetles and Fireflies. In the chat, links get a preview (thanks to FdHP) and an unsent message is kept for each conversation.
- For teachers: a group can create the accounts of a whole class at once, with credentials to print or export as CSV.
- And also: a "Boss squads" widget and a redone Arena widget on the home page, the multi-account console that registers or unregisters everything at once (thanks to dulph), a ranking that counts each player only once, lots of reviewed translations, and about sixty fixes.
Good luck in the tournament everyone, may the best AI win! See you on the chessboard :)
Pilow