Files
ortools-clone/examples/python/data/rogo/rogo_20110106.py
2012-03-28 14:23:23 +00:00

36 lines
976 B
Python

#
# Rogo problem from 2011-01-06
# 16 steps, good: 28, best: 31
#
rows = 9
cols = 7
max_steps = 16
W = 0
B = -1
problem = [
# 1 2 3 4 5 6 7
[B,W,6,W,W,3,B], # 1
[2,W,3,W,W,6,W], # 2
[6,W,W,2,W,W,2], # 3
[W,3,W,W,B,B,B], # 4
[W,W,W,2,W,2,B], # 5
[W,W,W,3,W,W,W], # 6
[6,W,6,B,W,W,3], # 7
[3,W,W,W,W,W,6], # 8
[B,2,W,6,W,2,B] # 9
]
# Copyright 2011 Hakan Kjellerstrand hakank@bonetmail.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.