Euphoria
drunken_bishop.cc File Reference
#include "core/drunken_bishop.h"
#include "assert/assert.h"
#include <algorithm>

Go to the source code of this file.

Namespaces

 eu
 
 eu::core
 

Functions

template<typename T , int total_bytes>
std::vector< U8 > eu::core::to_bytes_generic (T hash)
 
std::vector< U8 > eu::core::to_bytes (U32 hash)
 
std::vector< U8 > eu::core::to_bytes (U64 hash)
 
std::vector< int > eu::core::to_codes (U8 byte, bool msb_first)
 
std::vector< int > eu::core::to_codes (const std::vector< U8 > &bytes, bool msb_first)
 
Table< int > eu::core::get_drunken_bishop_result (U32 hash, int width, int height, bool msb_first, int startx, int starty)
 
Table< int > eu::core::get_drunken_bishop_result (U64 hash, int width, int height, bool msb_first, int startx, int starty)
 
Table< int > eu::core::get_drunken_bishop_result (const std::vector< int > &codes, int width, int height, int startx, int starty)
 
std::vector< std::string > eu::core::get_ssh_characters ()
 
std::vector< std::string > eu::core::render_table (const Table< int > &table, const std::vector< std::string > &characters)