Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C++

Compiler

gcc 8.2.0

Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic

Author

anonymous

almost 7 years ago

square.hpp
direction.hpp
embedding.hpp
board.hpp
transforms.hpp
ostream.hpp
lakes.hpp
draughts.hpp
stratego.hpp
type_traits.hpp
rectangle.hpp
connect.hpp

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-8.2.0/include -std=gnu++2a
       0       1
   2       3    
       5       6
   7       8    

W = 4, H = 4, C = 1, J = 0
embedding 8 external squares in 9 internal squares 
bitwise left shifts, clockwise, starting in the North direction: -5, -2, 1, 3, 5, 2, -1, -3, 
-----------------------------------------------------------
       0       1       2
   3       4       5    
       7       8       9
  10      11      12    
      14      15      16
  17      18      19    

W = 6, H = 6, C = 1, J = 0
embedding 18 external squares in 20 internal squares 
bitwise left shifts, clockwise, starting in the North direction: -7, -3, 1, 4, 7, 3, -1, -4, 
-----------------------------------------------------------
       0       1       2       3
   4       5       6       7    
       9      10      11      12
  13      14      15      16    
      18      19      20      21
  22      23      24      25    
      27      28      29      30
  31      32      33      34    

W = 8, H = 8, C = 1, J = 0
embedding 32 external squares in 35 internal squares 
bitwise left shifts, clockwise, starting in the North direction: -9, -4, 1, 5, 9, 4, -1, -5, 
-----------------------------------------------------------
  31      32      33      34    
      27      28      29      30
  22      23      24      25    
      18      19      20      21
  13      14      15      16    
       9      10      11      12
   4       5       6       7    
       0       1       2       3

W = 8, H = 8, C = 0, J = 0
embedding 32 external squares in 35 internal squares 
bitwise left shifts, clockwise, starting in the North direction: 9, 5, 1, -4, -9, -5, -1, 4, 
-----------------------------------------------------------
       0       1       2       3       4
   5       6       7       8       9    
      11      12      13      14      15
  16      17      18      19      20    
      22      23      24      25      26
  27      28      29      30      31    
      33      34      35      36      37
  38      39      40      41      42    
      44      45      46      47      48
  49      50      51      52      53    

W = 10, H = 10, C = 1, J = 0
embedding 50 external squares in 54 internal squares 
bitwise left shifts, clockwise, starting in the North direction: -11, -5, 1, 6, 11, 5, -1, -6, 
-----------------------------------------------------------
       0       1       2       3       4
   6       7       8       9      10    
      13      14      15      16      17
  19      20      21      22      23    
      26      27      28      29      30
  32      33      34      35      36    
      39      40      41      42      43
  45      46      47      48      49    
      52      53      54      55      56
  58      59      60      61      62    

W = 10, H = 10, C = 1, J = 1
embedding 50 external squares in 63 internal squares 
bitwise left shifts, clockwise, starting in the North direction: -13, -6, 1, 7, 13, 6, -1, -7, 
-----------------------------------------------------------
       0       1       2       3       4       5
   6       7       8       9      10      11    
      13      14      15      16      17      18
  19      20      21      22      23      24    
      26      27      28      29      30      31
  32      33      34      35      36      37    
      39      40      41      42      43      44
  45      46      47      48      49      50    
      52      53      54      55      56      57
  58      59      60      61      62      63    
      65      66      67      68      69      70
  71      72      73      74      75      76    

W = 12, H = 12, C = 1, J = 0
embedding 72 external squares in 77 internal squares 
bitwise left shifts, clockwise, starting in the North direction: -13, -6, 1, 7, 13, 6, -1, -7, 
-----------------------------------------------------------
  71      72      73      74      75      76    
      65      66      67      68      69      70
  58      59      60      61      62      63    
      52      53      54      55      56      57
  45      46      47      48      49      50    
      39      40      41      42      43      44
  32      33      34      35      36      37    
      26      27      28      29      30      31
  19      20      21      22      23      24    
      13      14      15      16      17      18
   6       7       8       9      10      11    
       0       1       2       3       4       5

W = 12, H = 12, C = 0, J = 0
embedding 72 external squares in 77 internal squares 
bitwise left shifts, clockwise, starting in the North direction: 13, 7, 1, -6, -13, -7, -1, 6, 
-----------------------------------------------------------
       0       1       2       3       4       5       6
   7       8       9      10      11      12      13    
      15      16      17      18      19      20      21
  22      23      24      25      26      27      28    
      30      31      32      33      34      35      36
  37      38      39      40      41      42      43    
      45      46      47      48      49      50      51
  52      53      54      55      56      57      58    
      60      61      62      63      64      65      66
  67      68      69      70      71      72      73    
      75      76      77      78      79      80      81
  82      83      84      85      86      87      88    
      90      91      92      93      94      95      96
  97      98      99     100     101     102     103    

W = 14, H = 14, C = 1, J = 0
embedding 98 external squares in 104 internal squares 
bitwise left shifts, clockwise, starting in the North direction: -15, -7, 1, 8, 15, 7, -1, -8, 
-----------------------------------------------------------
      50      51      52      53        
  44      45      46      47      48    
      39      40      41      42      43
  33      34      35      36      37    
      28      29      30      31      32
  22      23      24      25      26    
      17      18      19      20      21
  11      12      13      14      15    
       6       7       8       9      10
   0       1       2       3       4    

W = 10, H = 10, C = 1, J = 0
embedding 50 external squares in 54 internal squares 
bitwise left shifts, clockwise, starting in the North direction: 11, 6, 1, -5, -11, -6, -1, 5, 
-----------------------------------------------------------
       5      16      27      38      49    
   0      11      22      33      44      55
       6      17      28      39      50    
   1      12      23      34      45        
       7      18      29      40      51    
   2      13      24      35      46        
       8      19      30      41      52    
   3      14      25      36      47        
       9      20      31      42      53    
   4      15      26      37      48        

W = 11, H = 10, C = 1, J = 0
embedding 55 external squares in 56 internal squares 
bitwise left shifts, clockwise, starting in the North direction: -1, 5, 11, 6, 1, -5, -11, -6, 
-----------------------------------------------------------
   9  20  31  42  53  64  75  86  97
   8  19  30  41  52  63  74  85  96
   7  18  29  40  51  62  73  84  95
   6  17  28  39  50  61  72  83  94
   5  16      38      60      82  93
   4  15      37      59      81  92
   3  14  25  36  47  58  69  80  91
   2  13  24  35  46  57  68  79  90
   1  12  23  34  45  56  67  78  89
   0  11  22  33  44  55  66  77  88

W = 9, H = 10
embedding 90 external squares in 98 internal squares 
bitwise left shifts, clockwise, starting in the North direction: 1, 12, 11, 10, -1, -12, -11, -10, 
-----------------------------------------------------------
  99 100 101 102 103 104 105 106 107 108
  88  89  90  91  92  93  94  95  96  97
  77  78  79  80  81  82  83  84  85  86
  66  67  68  69  70  71  72  73  74  75
  55  56          59  60          63  64
  44  45          48  49          52  53
  33  34  35  36  37  38  39  40  41  42
  22  23  24  25  26  27  28  29  30  31
  11  12  13  14  15  16  17  18  19  20
   0   1   2   3   4   5   6   7   8   9

W = 10, H = 10
embedding 100 external squares in 109 internal squares 
bitwise left shifts, clockwise, starting in the North direction: 11, 12, 1, -10, -11, -12, -1, 10, 
-----------------------------------------------------------
  63  64  65  66  67  68  69  70
  54  55  56  57  58  59  60  61
  45  46  47  48  49  50  51  52
  36  37      39  40      42  43
  27  28      30  31      33  34
  18  19  20  21  22  23  24  25
   9  10  11  12  13  14  15  16
   0   1   2   3   4   5   6   7

W = 8, H = 8
embedding 64 external squares in 71 internal squares 
bitwise left shifts, clockwise, starting in the North direction: 9, 10, 1, -8, -9, -10, -1, 8, 
-----------------------------------------------------------
  40  41  42  43  44  45  46
  32  33  34  35  36  37  38
  24  25  26  27  28  29  30
  16  17  18  19  20  21  22
   8   9  10  11  12  13  14
   0   1   2   3   4   5   6

W = 7, H = 6
embedding 42 external squares in 47 internal squares 
bitwise left shifts, clockwise, starting in the North direction: 8, 9, 1, -7, -8, -9, -1, 7, 
-----------------------------------------------------------
   8   9  10
   4   5   6
   0   1   2

W = 3, H = 3
embedding 9 external squares in 11 internal squares 
bitwise left shifts, clockwise, starting in the North direction: 4, 5, 1, -3, -4, -5, -1, 3, 
-----------------------------------------------------------
 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
  96  97  98  99 100 101 102 103 104 105 106 107 108 109 110
  80  81  82  83  84  85  86  87  88  89  90  91  92  93  94
  64  65  66  67  68  69  70  71  72  73  74  75  76  77  78
  48  49  50  51  52  53  54  55  56  57  58  59  60  61  62
  32  33  34  35  36  37  38  39  40  41  42  43  44  45  46
  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30
   0   1   2   3   4   5   6   7   8   9  10  11  12  13  14

W = 15, H = 15
embedding 225 external squares in 239 internal squares 
bitwise left shifts, clockwise, starting in the North direction: 16, 17, 1, -15, -16, -17, -1, 15, 
-----------------------------------------------------------
 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378
 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358
 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338
 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258
 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
  80  81  82  83  84  85  86  87  88  89  90  91  92  93  94  95  96  97  98
  60  61  62  63  64  65  66  67  68  69  70  71  72  73  74  75  76  77  78
  40  41  42  43  44  45  46  47  48  49  50  51  52  53  54  55  56  57  58
  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38
   0   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18

W = 19, H = 19
embedding 361 external squares in 379 internal squares 
bitwise left shifts, clockwise, starting in the North direction: 20, 21, 1, -19, -20, -21, -1, 19, 
-----------------------------------------------------------
Exit Code:
0