BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
Rank.hpp File Reference
#include <cassert>
#include <expected>
#include <format>
#include <libchess/board/BitboardIndex.hpp>
#include <libchess/pieces/Colors.hpp>
#include <string>
#include <string_view>
#include <utility>
Include dependency graph for Rank.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::formatter< chess::board::Rank >

Namespaces

namespace  chess
namespace  chess::board

Enumerations

enum class  chess::board::Color
enum class  chess::board::Rank : BitboardIndex {
  chess::board::Rank::One , chess::board::Rank::Two , chess::board::Rank::Three , chess::board::Rank::Four ,
  chess::board::Rank::Five , chess::board::Rank::Six , chess::board::Rank::Seven , chess::board::Rank::Eight
}

Functions

constexpr auto chess::board::back_rank_for (Color color) noexcept -> Rank
template<Color Side>
constexpr auto chess::board::next_pawn_rank (Rank rank) noexcept -> Rank
template<Color Side>
constexpr auto chess::board::prev_pawn_rank (Rank rank) noexcept -> Rank
auto chess::board::rank_from_char (char character) -> std::expected< Rank, std::string >
constexpr auto chess::board::rank_to_char (Rank rank) -> char

Detailed Description

This file defines the Rank enumeration.

Definition in file Rank.hpp.