Add ross's maze for Rust-implementation comparison

main
Bryson Zimmerman 11 months ago
parent bc6a4a5231
commit a249afc549

Binary file not shown.

@ -15,12 +15,15 @@ class HierarchicalPathfinding {
Use R to render syntax highlights https://github.com/KDE/syntax-highlighting/blob/master/data/syntax/kotlin.xml Use R to render syntax highlights https://github.com/KDE/syntax-highlighting/blob/master/data/syntax/kotlin.xml
https://pandoc.org/MANUAL.html#syntax-highlighting https://pandoc.org/MANUAL.html#syntax-highlighting
https://hamel.dev/notes/quarto/highlighting.html https://hamel.dev/notes/quarto/highlighting.html
Measure primmaze2.exe during benchmarks by running from MazeFinder
https://stackoverflow.com/questions/35421699/how-to-invoke-external-command-from-within-kotlin-code
*/ */
companion object { companion object {
@JvmStatic @JvmStatic
fun main(args: Array<String>) { fun main(args: Array<String>) {
val benchmarking = false val benchmarking = true
val ns = arrayListOf(50, 100, 250, 500, 750, 1000) val ns = arrayListOf(50, 100, 250, 500, 750, 1000)
val iterations = 10 val iterations = 10
val file = File("performance.csv") val file = File("performance.csv")
@ -37,7 +40,7 @@ class HierarchicalPathfinding {
doTheThing(25, file) doTheThing(25, file)
//Write maze to file //Write maze to file
//File("maze.txt").writeText(World.toString()) File("maze.txt").writeText(World.toString())
/* /*
val numberFormat = NumberFormat.getInstance(Locale.US) val numberFormat = NumberFormat.getInstance(Locale.US)
println(World.toString()) println(World.toString())

Loading…
Cancel
Save