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
/* | |
* Copyright 2020 damios | |
* | |
* 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: | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
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
--------------------------------------------------- depth 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
/** | |
* Provides a {@link #probit(double)} method to convert from the (0.0,1.0) domain to a Gaussian range. | |
* Uses an algorithm by Peter John Acklam, as implemented by Sherali Karimov. | |
* Free to use, but you should credit Acklam and Karimov appropriately. | |
*/ | |
public final class Probit { | |
private static final double LOW = 0.02425; | |
private static final double HIGH = 1.0 - LOW; | |
// Coefficients in rational approximations. |
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
Less Opened Maze Generator | |
┌───────────────────┬───────┐ | |
│...................│.......│ | |
│.................┌─┘.│.┌──.│ | |
│.....│...........│...│.│...│ | |
├─..┌─┴───┐...│.┌─..┌─┘.│.──┤ | |
│...│.....│...│.│...│...│...│ | |
│...│.┌─..└──.│.│.│.└──.├──.│ | |
│...│.│.......│.│.│.....│...│ | |
│..─┤.├──....─┴─┘.└──...│.│.│ |
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; | |
using System.Collections.Generic; | |
namespace SquidLib.SquidMath { | |
/// <summary> | |
/// Only for use with indexers in IndexedDictionary to show you want to access a key. | |
/// There is only one enum constant here, At. | |
/// </summary> | |
public enum Key { |
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
Imitating language: "Lovecraft": | |
Ku ushku urk tachtal ith zvra... | |
Hmaanga teik ekhel oguts ape irk. | |
Ekhi; thi is ialaagh ogiltaats gleputs? | |
Aagrets nen nyeigh yeltaa! | |
Aarl ta; aha'at, sain zvrirkai-aikhug lia'aas! | |
Sol gukh emraats nyamre-op uxo tark fto. | |
Ux opits uvru as, en'yeh, pe-ialteish piakre. |
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
/******************************************************************************* | |
* Copyright 2011 See AUTHORS file. | |
* | |
* 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 | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
import java.util.Arrays; | |
/** | |
* This class provides methods for calculating Field of View in grids. Field of | |
* View (FOV) algorithms determine how much area surrounding a point can be | |
* seen. They return a two dimensional array of doubles, representing the amount | |
* of view (almost always sight) which the origin has of each cell. | |
* <br> | |
* The input resistanceMap is considered the percent of opacity. This resistance | |
* is on top of the resistance applied from the light spreading out. You can |
This file has been truncated, but you can view the full file.
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
┌────┐┌──┐┌──────┐ ┌──┐ ┌───────┐┌─────┬───┐ ┌────────┐ ┌──┐ ┌──────────┐ ┌──┐ ┌──────┬─────┐┌──┐ ┌──┐ ┌─────┐ ┌──┐ ┌──┐ ┌──┐┌──────┐ ┌──────┬─────┐┌──┐ ┌──┐ ┌────────┬───────┐ ┌──────┐ ┌────────┐┌──────┐ ┌──┐ ┌──────┐ ┌──┐ ┌──────────┐ ┌──┬─────┐ ┌──┐ ┌─────┐ ┌─────┐ ┌────────┐┌───────────┐┌─────┐ ┌────┬──┐┌────────┐ ┌──────┬─────────┐ ┌───┬───┐┌──┬─────┐ ┌──────┬─────────┐ ┌────────┐ ┌─────┐ ┌───────────┬─────┐ ┌─────┬──┐┌──────┐ ┌───────┬─────┬───┐ ┌─────┐ ┌───┐ ┌──────────────────┐ ┌──┐ ┌──┐ ┌──┐ ┌──────────┐ ┌────────┐ ┌────┐ ┌──┐ ┌──┐ ┌────────┐ ┌───┐ ┌───────────┬─────┐ ┌─────┐ ┌────────┐ ┌──────┐ ┌──┐ ┌─────┬──┐┌────────┐┌────┐ ┌──────┐┌────────┐┌────────┐ ┌──────┐ ┌──┐ ┌──┐ ┌──┐ ┌──────┐ ┌──┐ ┌───┐ ┌─────┐ ┌──┐ ┌────┬────┐ ┌───┬─────┐ ┌─────┐┌─────┬────────────┬───┬─────┐┌──────┐ | |
│....└┘..││......└─── |
NewerOlder