skip to main content
10.1145/2593833.2593838acmconferencesArticle/Chapter ViewAbstractPublication PagesicseConference Proceedingsconference-collections
Article

Code hunt: searching for secret code for fun

Published:02 June 2014Publication History

ABSTRACT

Learning to code can be made more effective and sustainable if it is perceived as fun by the learner. Code Hunt uses puzzles that players have to explore by means of clues presented as test cases. Players iteratively modify their code to match the functional behavior of secret solutions. This way of learning to code is very different to learning from a specification. It is essentially re-engineering from test cases. Code Hunt is based on the test/clue generation of Pex, a white-box test generation tool that uses dynamic symbolic execution. Pex performs a guided search to determine feasible execution paths. Conceptually, solving a puzzle is the manual process of conducting search-based test generation: the “test data” to be generated by the player is the player’s code, and the “fitness values” that reflect the closeness of the player’s code to the secret code are the clues (i.e., Pex-generated test cases). This paper is the first one to describe Code Hunt and its extensions over its precursor Pex4Fun. Code Hunt represents a high-impact educational gaming platform that not only internally leverages fitness values to guide test/clue generation but also externally offers fun user experiences where search-based test generation is manually emulated. Because the amount of data is growing all the time, the entire system runs in the cloud on Windows Azure.

References

  1. Godefroid, P., Klarlund, N., and Sen, K. DART: directed automated random testing. In Proc. PLDI (2005), 213–223. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Kelleher, C., and Pausch, R. F.: Using storytelling to motivate programming. Comm. ACM, July 2007/Vol. 50, No. 7, 58-64. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Tillmann, N., and de Halleux, J. Pex – white box test generation for .NET. In Proc. TAP (2008), 134–153. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Tillmann, N., de Halleux, J., Xie, T., Gulwani, S., and Bishop, J., Teaching and Learning Programming and Software Engineering via Interactive Gaming. In Proc. ICSE (2013), 1117–1126. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Xie, T., Tillmann, N., de Halleux, J. and Schulte, J., Fitness-Guided Path Exploration in Dynamic Symbolic Execution, in Proc. the 39th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN 2009), IEEE, June 2009Google ScholarGoogle ScholarCross RefCross Ref
  6. Lakhotia, K. En Garde: Winning Coding Duels Through Genetic Programming. In Proc. ICSTW SBST (2013), 421 - 424 Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Code hunt: searching for secret code for fun

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in
        • Published in

          cover image ACM Conferences
          SBST 2014: Proceedings of the 7th International Workshop on Search-Based Software Testing
          June 2014
          38 pages
          ISBN:9781450328524
          DOI:10.1145/2593833

          Copyright © 2014 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 2 June 2014

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • Article

          Upcoming Conference

          ICSE 2025

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader