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
fun String.toTransparentColor(num: Int): String { | |
return "#" + when (num) { | |
100 -> "FF" | |
99 -> "FC" | |
98 -> "FA" | |
97 -> "F7" | |
96 -> "F5" | |
95 -> "F2" | |
94 -> "F0" |
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
bool isVowel(char c){ | |
std::string check("aeiouAEIOU"); | |
return check.find(c)!=std::string::npos; | |
} |
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 <vector> | |
using namespace std; | |
vector<vector<int>>game; | |
int game_size; | |
bool isSafe(int row,int column) | |
{ | |
int i,j; |