This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Jovian.ECS.Components; | |
using Jovian.ECS.Components.Space; | |
using Jovian.ECS.Components.Vessels; | |
using Jovian.ECS.Systems.Physics; | |
using Unity.Burst; | |
using Unity.Entities; | |
using Unity.Jobs; | |
using Unity.Mathematics; | |
using Unity.Physics; | |
using Unity.Physics.Systems; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Collection | |
def count_bits(diagnostics: Collection[str]) -> (list[int], int): | |
bit_counts = [] | |
for number in diagnostics: | |
for bit_index, binary_digit in enumerate(number): | |
while bit_index >= len(bit_counts): | |
bit_counts.append(0) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Random = UnityEngine.Random; | |
namespace Tiger.Util | |
{ | |
public static class ListExtensions | |
{ | |
/// <summary>Returns a random element from the list</summary> |
NewerOlder