I need some inspiration for a project i'm working on.
Would be great if you could express your thoughts on how to do this.
The program is a ticket system where clients can book seats for an event
by selecting the block of seats they prefer.
Lets say you have two blocks of seats, Block A and Block B
Both blocks has uneven amount of chairs in each row.
Some rows has obsticles inbetween them.
Example:
Block A
[][][][][][][][] Row A (Seats 1 - 8)
[][][][] [][][] Row B (Seats 1 - 7)
[][][][][][][][] Row C (Seats 1 - 8)
[] [][][] [][] Row D (Seats 1 - 6)
Block B
[][][][] [][][] Row A (Seats 9 - 15)
[][][][][][][][] Row B (Seats 8 - 15)
[][][][][][][][] Row C (Seats 9 - 16)
[][][][] [][][] Row D (Seats 7 - 13)
By automation, the seats fill from row A and leave no seats open between ticket buyers.
The ticket buyer and his/her party shouldnt be split up in anyway. If the available seats in the row
is less than the party members, then the whole party should be move up to the next row..
Members of the party may not be placed accross the gaps.
How would you solve this?
Thanks in advance
Would be great if you could express your thoughts on how to do this.
The program is a ticket system where clients can book seats for an event
by selecting the block of seats they prefer.
Lets say you have two blocks of seats, Block A and Block B
Both blocks has uneven amount of chairs in each row.
Some rows has obsticles inbetween them.
Example:
Block A
[][][][][][][][] Row A (Seats 1 - 8)
[][][][] [][][] Row B (Seats 1 - 7)
[][][][][][][][] Row C (Seats 1 - 8)
[] [][][] [][] Row D (Seats 1 - 6)
Block B
[][][][] [][][] Row A (Seats 9 - 15)
[][][][][][][][] Row B (Seats 8 - 15)
[][][][][][][][] Row C (Seats 9 - 16)
[][][][] [][][] Row D (Seats 7 - 13)
By automation, the seats fill from row A and leave no seats open between ticket buyers.
The ticket buyer and his/her party shouldnt be split up in anyway. If the available seats in the row
is less than the party members, then the whole party should be move up to the next row..
Members of the party may not be placed accross the gaps.
How would you solve this?
Thanks in advance