Skip to content

Instantly share code, notes, and snippets.

View vcode11's full-sized avatar
💭
Hoping that dots will connect

Vishal Mishra vcode11

💭
Hoping that dots will connect
View GitHub Profile
import pickle
import time
import pandas as pd
from selenium import webdriver
import selenium.webdriver.support.ui as ui
def get_list(tags) -> str:
'''Converts list of tags to data string.'''
import itertools
family = ['jake', 'melissa', 'oliver', 'emily']
years = ['1987', '1954', '1963']
symbols = ["!","@","#","$","%","&","*","-","=","_","+",".",","]
count = 0
for member in family:
for year in years:
for symbol in symbols:
words = [member, year, symbol]
for word in itertools.permutations(words,3):
@vcode11
vcode11 / tic-tac-toe.py
Created April 27, 2020 17:50
A tic tac toe implementation that always wins based on mini-max algorithm
board = [' ' for i in range(3)]
board = [board.copy() for i in range(3)]
def printboard(board):
ch = ' | '
print('Board: ')
for i in range(2):
print(ch.join(board[i]))
print('_'*10, end='\n\n')
print(ch.join(board[2]))