In [1]:
import os
import pandas as pd
from IPython.display import HTML

In [3]:
os.getcwd()


Out[3]:
'C:\\Users\\cliff\\workspace\\Rush Hour With Python'

In [10]:
%run display_utilities.py

In [5]:
states_2_2 = pd.read_csv('..\Rush Hour With Java\data files\game_states_2_cars_2_trucks.csv')

In [6]:
states_2_2.count()


Out[6]:
game_number               116650
comb_class_id             116650
game_hash_top             116650
game_hash_bottom          116650
is_goal_state             116650
optimal_neighbor               0
red_car_end_a             116650
connected_component_id         0
topo_class_hash           116650
degree                         0
dtype: int64

In [8]:
index = 1

In [11]:
HTML(html_table_for_df_index_component_coloring(states_2_2,index))


Out[11]:
QQTTT
RRR
XX

In [12]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index+1))


Out[12]:
QQTTT
RRR
XX

In [13]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index+2))


Out[13]:
QQTTT
RRR
XX

In [14]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index+3))


Out[14]:
QQTTT
R
XXR
R

In [15]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index+4))


Out[15]:
QQTTT
RRR
XX

In [16]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index+5))


Out[16]:
QQTTT
R
XXR
R

In [32]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index+6))


Out[32]:
QQTTT
R
XXR
R

In [18]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index+7))


Out[18]:
QQTTT
R
XXR
R

In [37]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index+31))


Out[37]:
QQTTT
XX
RRR

In [38]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index+32))


Out[38]:
QQTRRR
T
XXT

In [39]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index))


Out[39]:
QQTTT
RRR
XX

In [41]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index+31))


Out[41]:
QQTTT
XX
RRR

In [17]:
HTML(html_table_for_df_index_construction_coloring(states_2_2,index+40))


Out[17]:
QQT
T
XXTRRR

In [ ]: