Skip to content

Commit

Permalink
StarTrek example
Browse files Browse the repository at this point in the history
  • Loading branch information
thygrrr committed Mar 1, 2024
1 parent 2e65de3 commit 6e48b12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cookbook/StarTrek.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

// 🌠 And in the 32nd century
Console.WriteLine($"{"Kirk",10} is {kirk} - and alive? {world.IsAlive(kirk)}");
Console.WriteLine($"{"Shatner",10} is not a Stewart! {kirk != picard}");

// 🌌 Goodbye, Gene
world.Despawn(picard);
Expand All @@ -33,3 +32,6 @@

var georgiou = world.Spawn();
Console.WriteLine($"{"Georgiou",10} is {georgiou}, now THAT's a Captain!");

// ⁉️ Needed to be said.
Console.WriteLine($"{"Shatner",10} ain't Stewart, even in death! {kirk != picard}");
4 changes: 2 additions & 2 deletions fennecs.tech/cookbook/StarTrek.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dotnet run --project StarTrek.csproj
Picard is E-00000001:00002 - the next Generation!
Janeway is E-00000002:00001 - the best Captain ever!
Kirk is E-00000001:00001 - and alive? False
Shatner is not a Stewart! True
Archer is E-00000001:00003, ugh, don't we hate reboots...
Georgiou is E-00000002:00002, now THAT's a Captain!
```
Shatner ain't Stewart, even in death! True
```

0 comments on commit 6e48b12

Please sign in to comment.