PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] Position and goal
Date: Sunday, 12 Apr 2020, 21:40:23


    > Message Posted By: Unknown
    >
    > Different positions represent different configurations of characters on
    > the table, so it seems like it would be reasonable to store them in 2D
    > arrays. But I am not sure if it is the most effective way, since it
    > becomes problematic to using strcpy(), strdup() and other operations with
    > strings. Could you please give me advice on how to store positions?

As stated in the specification:

  1. Your program should represent positions as null-terminated strings in the
     format used to specify the INITIAL and GOAL positions on the command line.
     This is based on the normal row-by-row mapping of a 2D array to a 1D array.
   
--Stan-
PREV INDEX NEXT