Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (2)
crossword creator
no vote
just share Even if the position is valid, we also check if there is no other word crossing the word we are about to place, and if there is, the crossing point must have the same letter, both for the word placed horizontally and the word placed vertically. int CanBePlaced( string word, int x, int y, int dir) { var result = 0 ; if (dir == 0 ) { for ( var j = 0 ; j < word.Length; j++) { int x1 = x, y1 = y + j;
kueh
2016-08-23
0
1
8 puzzle solution with A star algoritmh
no vote
The digital problem is that they throw things at you while you study AI. It's a great little problem for learning, understanding search trees and shortest path algorithms, heuristics. Through breadth first search travel, through depth first search, we finally use Manhattan distance heuristic effe with a * algorithm
kueh
2016-08-23
0
1
No more~