What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-15 07:22:18
4 in a rpw pygame code
import pygame import sys import time from pygame.locals import * import numpy as np COLUMNS = 7 ROWS = 6 WINAMOUNT = 4 WINDOWWIDTH = 800 WINDOWHEIGHT = 600 COUNTERDIAMETER = 50 PLAYWIDTH = COLUMNS*(COUNTERDIAMETER+25)+25 PLAYHEIGHT = ROWS*(COUNTERDIAMETE... Add solution -
Other 2021-10-18 05:25:04
hardila
/**gaussElim Exercise***/ #include<stdio.h> #include<math.h> /******* Function that performs Gauss-Elimination and returns the Upper triangular matrix and solution of equations: There are two options to do this in C. 1. Pass the augmente... Add solution -
Python 2021-10-17 23:02:04
program for tic tac toe in python
board = ['-', '-', '-', '-', '-', '-', '-', '-', '-'] gameplay = [1, 0, 1, 0, 1, 0, 1, 0, 1] def display_board(): print(board[0] + '|' + board[1] + '|' + board[2]) print(board[3] + '|' + board[4] + '|' + board[5]) print(board... Add solution -
Python 2021-10-04 02:58:03
python pathfinding module
#You can install this module with >>pip install pathfinding #You first need to import the module from pathfinding.core.diagonal_movement import DiagonalMovement from pathfinding.core.grid import Grid from pathfinding.finder.a_star import AStarFind... Add solution -
Other 2021-10-02 22:22:04
Multiple data in scatter matrix
from pandas.tools.plotting import scatter_matrix import pandas as pd from sklearn import datasets iris = datasets.load_iris() iris_data = pd.DataFrame(data=iris['data'],columns=iris['feature_names']) iris_data["target"] = iris['target'] color_... Add solution -
Python 2021-09-30 15:59:03
classical mds python
from __future__ import division import numpy as np def cmdscale(D): """  ... Add solution