This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Doors | |
{ | |
internal class Program | |
{ | |
private const int ITERATIONS = 10_000_000; | |
//private const int SEED = 0; |
This file contains 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
Игра.Новая() | |
.Имя("Пробная игра") | |
.Локации() | |
.Локация("Пещера", "Холодная и мрачная пещера") | |
.Локация("Поляна", "Светлая и приветливая полянка") | |
.КонецЛокаций() | |
.Настройки() | |
.НачатьВЛокации("Пещера") | |
.КонецНастроек() | |
.ЗавершитьСоздание() |
This file contains 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 org.toysoft; | |
import java.util.*; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import java.util.stream.Collectors; | |
public class Main { | |
/** | |
* Условия: |