FatCat_Tanks_Challenge/index.ts

26 lines
484 B
TypeScript
Raw Normal View History

2023-12-05 18:52:03 +00:00
/**
* FatCat Coders tank battle challenge :)
*
* There will be 5 tanks, representing different
* programming langugages.
*
* May the best language live
*
* KAPOW!!!
*/
2023-12-05 19:16:38 +00:00
import { buildTank, battleItOut } from "./Tank";
2023-12-05 18:52:03 +00:00
const tankPrototypes = [
"Rust",
"JavaScript",
"TypeScript",
"Haskell",
"HTML", // If it wins, it's a programming language
];
const initialTanks = tankPrototypes.map(buildTank);
2023-12-05 19:22:01 +00:00
const winner = battleItOut(initialTanks);
console.log(winner);