Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

markalexander/gsa-ultra-2018

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GSA ULTRA 2018

This repository contains my submission for GSA ULTRA 2018.

Structure

Each problem is its own Python package. Solution functions are not run directly but rather through the comprehensive unit testing framework. Each problem's unit tests can be found in the package directory in a file named test_[problem_id].py. These tests can be run using pytest, either for individual problems or the entire crossword (see below).

The solutions themselves can be found in the same directory within the solutions.py file. Some problems also have a pathological.py file used for generating worst-case examples.

Each solutions.py file has a short explanation of the approach taken.

Problems

Problem statements can be found in the README files of the respective directories. A list is given below.

Across

Down

Setup and running

Per the competition rules, the examples run in a Python 3.4 environment.

This can be set up e.g. with 'conda:

conda create -n ultra python=3.4

The required packages (essentially just pytest) can then be installed with:

pip install -r requirements.txt

Tests can then be run for individual problems:

pytest crossword/[direction]/[problem_id]/

Or for the entire crossword:

pytest crossword/

About

GSA ULTRA 2018

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages