-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
801 additions
and
307 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
AccessModifierOffset: -1 | ||
AlignAfterOpenBracket: DontAlign | ||
AllowShortBlocksOnASingleLine: true | ||
AllowShortFunctionsOnASingleLine: All | ||
AlwaysBreakBeforeMultilineStrings: false | ||
BasedOnStyle: LLVM | ||
BraceWrapping: | ||
AfterClass: false | ||
AfterControlStatement: false | ||
AfterEnum: false | ||
AfterFunction: false | ||
AfterNamespace: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
SplitEmptyFunction: false | ||
SplitEmptyRecord: false | ||
BreakBeforeBraces: Custom | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializers: AfterColon | ||
BreakStringLiterals: true | ||
ColumnLimit: 120 | ||
Cpp11BracedListStyle: true | ||
FixNamespaceComments: true | ||
IncludeBlocks: Merge | ||
IndentCaseLabels: true | ||
IndentPPDirectives: None | ||
IndentWidth: 2 | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: All | ||
PointerAlignment: Left | ||
ReflowComments: true | ||
SortIncludes: true | ||
SortUsingDeclarations: true | ||
SpaceAfterCStyleCast: true | ||
SpaceAfterLogicalNot: false | ||
SpaceAfterTemplateKeyword: false | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCtorInitializerColon: false | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInConditionalStatement: false | ||
SpacesInContainerLiterals: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: c++17 | ||
UseCRLF: false | ||
UseTab: false |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma once | ||
|
||
#include "utils/Players.hpp" | ||
#include <array> | ||
#include <cstdint> | ||
|
||
namespace connect_four { | ||
constexpr uint_fast8_t board_width = 7; | ||
constexpr uint_fast8_t board_height = 6; | ||
constexpr uint_fast8_t board_cells = board_width * board_height; | ||
|
||
typedef std::array<Players, board_cells> ai_cells; | ||
typedef std::array<uint_fast8_t, board_width> ai_remaining; | ||
|
||
struct ai_board { | ||
ai_cells cells; | ||
ai_remaining remaining; | ||
}; | ||
|
||
int_fast8_t position(ai_board& board, int_fast8_t remaining, int_fast8_t maximum_depth) noexcept; | ||
} // namespace connect_four |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
#include <array> | ||
#include "utils/Players.hpp" | ||
#include <array> | ||
#include <cstdint> | ||
|
||
namespace tic_tac_toe { | ||
constexpr uint_fast8_t board_width = 3; | ||
constexpr uint_fast8_t board_height = 3; | ||
constexpr uint_fast8_t board_cells = board_width * board_height; | ||
|
||
namespace TicTacToe | ||
{ | ||
typedef std::array<Players, 9> ai_board; | ||
typedef std::array<Players, board_cells> ai_board; | ||
|
||
int_fast8_t position(ai_board &board, int_fast8_t remaining) noexcept; | ||
} // namespace TicTacToe | ||
int_fast8_t position(ai_board& board, int_fast8_t remaining) noexcept; | ||
} // namespace tic_tac_toe |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,6 @@ | |
}, | ||
"keywords": [ | ||
"discord.js", | ||
"klasa", | ||
"bot", | ||
"standalone" | ||
], | ||
|
Oops, something went wrong.