Skip to content

Instantly share code, notes, and snippets.

//Copyright(c) 2014, plasma-effect
//All rights reserved.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met :
//*Redistributions of source code must retain the above copyright notice,
//this list of conditions and the following disclaimer.
//* Redistributions in binary form must reproduce the above copyright notice,
//this list of conditions and the following disclaimer in the documentation
//and / or other materials provided with the distribution.
// Copyright plasma-effect 2014.
// Distributed under the Boost Software License, Version 1.0.
//(See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include<vector>
#include<utility>
#include<algorithm>
#include<iostream>
#include<chrono>
#include<random>
template<std::size_t N>int sum(int const(&ar)[N])
{
int ret{};
for (int const& x : ar)
ret += x;
return ret;
// Copyright plasma_effect 2014.
// Distributed under the Boost Software License, Version 1.0.
//(See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include<stdexcept>
#include<stack>
namespace plasma_brain
#define NO_S3D_USING
#define NO_MATH_USING
#include <Siv3D.hpp>
#include<boost/lexical_cast.hpp>
void Main()
{
s3d::Font font(12);
while (s3d::System::Update())
{