notes.txt 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Compat Matrix
  2. 1: 1 2 3 4 7
  3. 2: 1 2 3 5 8
  4. 3: 1 2 3 6 9
  5. 4: 1 4 5 6 7
  6. 5: 2 4 5 6 8
  7. 6: 3 4 5 6 9
  8. 7: 1 4 7 8 9
  9. 8: 2 5 7 8 9
  10. 9: 3 6 7 8 9
  11. // counter: 123456789
  12. // 1st Digit: 1 (49)
  13. // 2nd Digit: 2 (50)
  14. // 3rd Digit: 3 (51)
  15. // 4th Digit: 4 (52)
  16. // 5th Digit: 5 (53)
  17. // 6th Digit: 6 (54)
  18. // 7th Digit: 7 (55)
  19. // 8th Digit: 8 (56)
  20. // 9th Digit: 9 (57)
  21. // 362880
  22. // blocks := generate_blocks()
  23. // fmt.Println(len(blocks))
  24. // print_block(blocks[0])
  25. // print_block(blocks[1])
  26. // for i := range blocks {
  27. // fmt.Println(blocks[i])
  28. // }
  29. row1 := "769104802"
  30. row2 := "154800060"
  31. row3 := "002700150"
  32. row4 := "600900308"
  33. row5 := "045328670"
  34. row6 := "328670945"
  35. row7 := "597410280"
  36. row8 := "006283090"
  37. row9 := "200590006"
  38. row1 := "769154832"
  39. row2 := "154832769"
  40. row3 := "832769154"
  41. row4 := "671945328"
  42. row5 := "945328671"
  43. row6 := "328671945"
  44. row7 := "597416283"
  45. row8 := "416284597"
  46. row9 := "283597416"
  47. // for rows1_index := range solver.row1s {
  48. // for rows2_index := range solver.row2s {
  49. // for rows3_index := range solver.row3s {
  50. // for rows4_index := range solver.row4s {
  51. // for rows5_index := range solver.row5s {
  52. // for rows6_index := range solver.row6s {
  53. // for rows7_index := range solver.row7s {
  54. // for rows8_index := range solver.row8s {
  55. // for rows9_index := range solver.row9s {
  56. // go solver.routine_validator(rows1_index, rows2_index, rows3_index, rows4_index, rows5_index, rows6_index, rows7_index, rows8_index, rows9_index)
  57. // // if solver.validate_combination(solver.row1s[rows1_index], solver.row2s[rows2_index], solver.row3s[rows3_index], solver.row4s[rows4_index], solver.row5s[rows5_index], solver.row6s[rows6_index], solver.row7s[rows7_index], solver.row8s[rows8_index], solver.row9s[rows9_index]) {
  58. // // solver.solutions = append(solver.solutions, solver.render_combination(solver.row1s[rows1_index], solver.row2s[rows2_index], solver.row3s[rows3_index], solver.row4s[rows4_index], solver.row5s[rows5_index], solver.row6s[rows6_index], solver.row7s[rows7_index], solver.row8s[rows8_index], solver.row9s[rows9_index]))
  59. // // }
  60. // // solver.counter = solver.counter + 1
  61. // // if solver.counter%1000000 == 0 {
  62. // // percentage = (float32(solver.counter) / (float32(solver.iter) / 100))
  63. // // fmt.Println("Processing:", percentage, "%; Procs:", runtime.NumGoroutine())
  64. // // }
  65. // }
  66. // }
  67. // }
  68. // }
  69. // }
  70. // }
  71. // }
  72. // }
  73. // }