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
-- mpand and mplier is multiplicand and multiplier | |
-- modulus is modulus | |
-- product is the remainder | |
-- clk is clock | |
-- ds for D selector | |
-- reset is to go back to first state | |
-- ready mean that the value is product is the remainder of operation (final value) | |
-- only take the value when ready is true | |
-- note: the modulus is not yet validated as primitive polynomial (todo) | |
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
#include <iostream> | |
#include <bitset> | |
#include <vector> | |
#include <string> | |
using bits128 = std::bitset<128>; | |
using bits96 = std::bitset<96>; | |
using bits32 = std::bitset<32>; | |
using bits8 = std::bitset<8>; | |
using vBits8 = std::vector<bits8>; |
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
def take_screenshot(): | |
img = pyautogui.screenshot() | |
board_image = np.array(img) | |
board_image = board_image[:, :, ::-1].copy() | |
return board_image |
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
#include <iostream> | |
#include <cstring> | |
#include <ctime> | |
using namespace std; | |
class Hero{ | |
int maxAttack, maxBlock; | |
public: | |
string name; |