This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2014-2025 Real Logic Limited. | |
| * | |
| * 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 | |
| * | |
| * https://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Here's a prompt you can use to generate the game: | |
| --- | |
| **Prompt:** | |
| Build a complete single-file HTML/JS 2D top-down racing game for 2 players hotseat. No canvas libraries — use a `<canvas>` element with vanilla JS. | |
| **Track:** Randomly generated per race. Draw a closed looping circuit on a single non-scrolling screen (800×600). Generate it by placing 6–10 random waypoints around a center point, sorting them by angle, and building a smooth path through them. The track has a visible road surface (dark asphalt), white lane markings, grass/dirt outside, and a visible start/finish line with a checkered pattern. Place the track entirely within the canvas. Regenerate the track between races. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openapi": "3.0.1", | |
| "info": { | |
| "title": "Apply Default Global SecurityScheme in springdoc-openapi", | |
| "version": "1.0.0" | |
| }, | |
| "servers": [ | |
| { | |
| "url": "http://localhost:8080", | |
| "description": "Generated server url" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
| plugins { | |
| id("org.springframework.boot") version "3.0.5" | |
| id("io.spring.dependency-management") version "1.1.0" | |
| // id("org.graalvm.buildtools.native") version "0.9.20" | |
| kotlin("jvm") version "1.8.20" | |
| kotlin("plugin.spring") version "1.8.20" | |
| kotlin("plugin.jpa") version "1.8.20" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import io.nacular.doodle.application.Application | |
| import io.nacular.doodle.application.application | |
| import io.nacular.doodle.core.Display | |
| import io.nacular.doodle.theme.ThemeManager | |
| import io.nacular.doodle.theme.native.NativeTheme | |
| import org.kodein.di.instance | |
| class MyApp(display: Display, | |
| manager: ThemeManager, | |
| theme : NativeTheme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import io.nacular.doodle.application.Application | |
| import io.nacular.doodle.application.application | |
| import io.nacular.doodle.controls.panels.GridPanel | |
| import io.nacular.doodle.controls.text.Label | |
| import io.nacular.doodle.core.* | |
| import io.nacular.doodle.geometry.Size | |
| import io.nacular.doodle.layout.constrain | |
| import kotlinx.coroutines.GlobalScope | |
| import kotlinx.coroutines.launch | |
| import org.kodein.di.instance |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.assertj.core.api.SoftAssertions | |
| fun softAssert(function: SoftAssertions.() -> Unit) { | |
| SoftAssertions().apply { function() }.assertAll() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package net.schematix.validator | |
| import com.fasterxml.jackson.dataformat.csv.CsvMapper | |
| import com.worldturner.medeia.api.UrlSchemaSource | |
| import com.worldturner.medeia.api.jackson.MedeiaJacksonApi | |
| import org.junit.jupiter.api.Test | |
| class ValidatorTest { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
| plugins { | |
| id("org.springframework.boot") version "2.1.6.RELEASE" | |
| id("io.spring.dependency-management") version "1.0.7.RELEASE" | |
| kotlin("jvm") version "1.2.71" | |
| kotlin("plugin.spring") version "1.2.71" | |
| } | |
| group = "io.jworks.feeds" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package nsmain2 | |
| import kotlin.random.Random | |
| inline class PlayerMark(val value: String) | |
| class Board(private val cells: List<PlayerMark?>) { | |
| companion object { | |
| val playerX = PlayerMark("x") |
NewerOlder