C# Class Day23, AdventOfCode

Inheritance: DayBase
Afficher le fichier Open project: CameronAavik/AdventOfCode Class Usage Examples

Méthodes publiques

Méthode Description
Instruction ( InstructionType Type, int Arg1, int Arg2 ) : record,
ParseNumber ( ) : AdventOfCode.CSharp.Common
Solve ( ReadOnlySpan input, Solution solution ) : void

Private Methods

Méthode Description
Instruction ( ) : AdventOfCode.CSharp.Common
Instruction ( InstructionType.Half ,ParseReg ) : AdventOfCode.CSharp.Common
Instruction ( InstructionType.Increment ,ParseReg ) : AdventOfCode.CSharp.Common
Instruction ( InstructionType.JumpIfEven ,ParseReg ) : AdventOfCode.CSharp.Common
Instruction ( InstructionType.JumpIfOne ,ParseReg ) : AdventOfCode.CSharp.Common
Instruction ( InstructionType.Triple ,ParseReg ) : AdventOfCode.CSharp.Common
ParseNumber ( ReadOnlySpan str ) : int
ParseReg ( ReadOnlySpan line ) : int

Method Details

Instruction() public méthode

public Instruction ( InstructionType Type, int Arg1, int Arg2 ) : record,
Type InstructionType
Arg1 int
Arg2 int
Résultat record,

ParseNumber() public méthode

public ParseNumber ( ) : AdventOfCode.CSharp.Common
Résultat AdventOfCode.CSharp.Common

Solve() public méthode

public Solve ( ReadOnlySpan input, Solution solution ) : void
input ReadOnlySpan
solution Solution
Résultat void