aocc23

Advent of Code 2023
git clone git://www.tkruger.se/aocc23.git
Log | Files | Refs | README

common.h (283B)


      1 #ifndef COMMON_H_
      2 #define COMMON_H_
      3 
      4 #include <assert.h>
      5 #include <stdint.h>
      6 #include <stdio.h>
      7 #include <stdlib.h>
      8 
      9 #include <reading.h>
     10 #include <smallset.h>
     11 
     12 typedef struct {
     13   uint8_t cards[5];
     14   uint64_t maxval;
     15   uint64_t bid;
     16 } hand_t;
     17 
     18 uint64_t hand_value(hand_t h);
     19 
     20 #endif