Skip to content

Latest commit

 

History

History

puzzle_06

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Note

Design

puzzle_06 (299 SLoC) :: Ada centric solution

  • Implementing a generic Round Robin buffer with a Protected type
  • Implementing generic of generic
  • Using Ada.Strings.Maps for the fun (beauty) of it
function Is_In (Element : in Character;
                Set     : in Character_Set)
  • Using Ada.Text_IO.Text_Streams to handle the input (data stream as in real life)
  • TODO: factoring out some code into a unique procedure call Analyse_Buffer

Build

cd puzzle_06
alr build

Run

bin/puzzle_06 data/test.dat
bin/puzzle_06 data/input.dat

Run with some traces

bin/puzzle_06 -t data/test.dat

Run with help

bin/puzzle_06 -h