I'll be honest right now and admit that this is for a school project. We're supposed to design a solver for a game (I won't go into details, that's not the purpose of my post) involving a hexagonal board, such as this one. My problem is this: I don't know how to represent this board as data. We're using a functional language for this (won't go into specifics here), and I'm not so great at functional programming. If anyone has any tips as to how I can wrap my head around representing a hexagonal game board as data in a functional programming paradigm, that would be great!
I know this post might be super vague...I'm just stuck at data representation, and I'm sure that I'll be able to make some headway into this solver once I get some sort of idea as to how to represent this board as data.