<commit_before>#include "pieces.h"

void Piece::draw(QPainter *e)
{
  e->setBrush(c);
  e->drawEllipse(QPoint(posX,posY), 40, 40);
}

std::pair<int,int> Piece::getPos()
{
    return std::make_pair(posX, posY);
}

void Piece::setPos(std::pair<int,int> n)
{
  posX = n.first;
  posY = n.second;
}

void Piece::setCords(std::pair<int,int> n)
{
  posX = n.first * 80 + 40;
  posY = n.second * 80 + 40;
}

bool Piece::compareCords(std::pair<int,int> n)
{
  if (posX / 80 == n.first && posY / 80 == n.second)
    return true;

  return false;
}

std::pair<int,int> Piece::getCords()
{
  return std::make_pair(posX / 80, posY / 80);
}
<commit_msg>implemented get and set for isKing<commit_after>#include "pieces.h"

void Piece::draw(QPainter *e)
{
  e->setBrush(c);
  e->drawEllipse(QPoint(posX,posY), 40, 40);
}

std::pair<int,int> Piece::getPos()
{
    return std::make_pair(posX, posY);
}

void Piece::setPos(std::pair<int,int> n)
{
  posX = n.first;
  posY = n.second;
}

void Piece::setCords(std::pair<int,int> n)
{
  posX = n.first * 80 + 40;
  posY = n.second * 80 + 40;
}

bool Piece::compareCords(std::pair<int,int> n)
{
  if (posX / 80 == n.first && posY / 80 == n.second)
    return true;

  return false;
}

std::pair<int,int> Piece::getCords()
{
  return std::make_pair(posX / 80, posY / 80);
}

bool Piece::isKing()
{
  return king;
}

void Piece::setKing(bool x)
{
  king = x;
}

{'fraction_non_alphanumeric': 0.19538572458543618, 'fraction_numerical': 0.02883922134102379, 'mean_word_length': 3.9928057553956835, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1003642', 'n_tokens_mistral': 670, 'n_tokens_neox': 621, 'n_words': 120}