Skip to content

Instantly share code, notes, and snippets.

@borensoren
borensoren / P618.java
Created November 12, 2012 15:20
Magic Square verification
import java.util.Scanner;
public class P618
{
public static void main(String[] args)
{
public static boolean equalityCheck(int[] n, int m) //I get the error here
{
for (int i = 7; i <= 0; i--)
{
if (i%2==0)
{
int a = creditCard.charAt(i);
evenDigits = evenDigits + a;
}
@borensoren
borensoren / createmagicdeck.py
Created July 18, 2012 16:04
Creates MTG deck
import re
CARDLIST = open('deck','r')
"""
opens a text file with a list of cards and quantities formatted as such:
22 ISLAND
47 ORNITHOPTER etc..
"""